Topic: xajax and php 5.3.1

My member registration/administration application has worked without problems for over a year. Last week I did some small changes and it still worked in all parts.

This week it stopped working properly when my host upgraded to latest version of php.

As I se it the server side is doing the job but only the very first part of the response is sent back to my form.

Any idea what to look for?
What should I check for when using the new php version?
Can I validate the php code on the server side in some tool?

/Staffan

February 26
I just got a message that there was a response to my issue:

The main problem was that php 5.3.1 impose new coding rules that made my php code stop working.
Just one thing I think Xajax could fix:

Not possible to read status of unchecked Checkboxes.
Fix: Add text fields and JavaScript to mimic status of checkboxes and
access the corresponding text field.

Other thing that needed fixing:

Does not work any longer to use:
XML-element: $entry->getAttributeNode('param') -> nodeValue; 
when the attribute is missing.
Fix: Changed to $entry->getAttribute('param') ;

Must no longer try to access $_Session values that are not set.
Fix: Check with if (session_is_registered('param'));

Variables now must be initialized before used in expressions.
Fix: Only use initialized varaibles in expressions.

With these changes things seem to work!!

Last edited by westbeck (2010-02-26 9:04:58 AM)

Re: xajax and php 5.3.1

Hi,

Can you be a bit more specific?

Have you turned on the debug facility in Xajax?

I use the latest PHP on my host's site and it works well.

You posted in the V0.2 area. Are you still using the older version?

If all else fails, post some code.

Ed

If you ever stop learning you may as well dig a hole, crawl in and pull the top over yourself.

Re: xajax and php 5.3.1

Hello

Just installed latest wampserver on my win devel machine with php 5.3.
Ran a quick test with some of the xajax test programs (phpWhitespaceTest.php) and it reports the following in the browser:

Code: PHP

Deprecated: Assigning the return value of new by reference is deprecated in C:\Projects\Libs\xajax\xajax_core\xajax.inc.php on line 360



Deprecated: Assigning the return value of new by reference is deprecated in C:\Projects\Libs\xajax\xajax_core\xajax.inc.php on line 1305

 

Some background info in the debug window in red:
ERROR: ResponseReceived: Invalid response XML: The response contains an unexpected tag or text: {data}.

Istvan

Re: xajax and php 5.3.1

See this thread:

http://community.xajaxproject.org/topic … eprecated/

Ed

If you ever stop learning you may as well dig a hole, crawl in and pull the top over yourself.