NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Double quotes being stripped from POST data after PHP upg


Joined: 23 Oct 2008
Posts: 1
Reply with quote
I just ran an upgrade from PHP 5.2.3 to 5.2.5 and te web service that we are running stopped responding. I think I have nailed this down to one single issue. When we post data to the web service from Flash the serialized arrays are being stripped of double quotes (") and these are replaced with nothing. Obviously this kinda kills things on the server side as none of that data can be successfully unserialized.

Is this something which anyone else here has experienced before? I'm wondering if it's a PHP bug which is causing the post data to be stripped. I've found a temporary workaround by adding the following before the call to the NuSOAP service:

Code:
$HTTP_RAW_POST_DATA = ereg_replace(""",'"',$HTTP_RAW_POST_DATA);
$HTTP_RAW_POST_DATA = ereg_replace("'","'",$HTTP_RAW_POST_DATA);


I have verified that it's an issue with PHP on the server as I have an identical machine in the same data centre which was not upgraded on which the web service runs fine. Downgrading to 5.2.3 did not resolve the problem... :/
View user's profileFind all posts by nathanpitmanSend private message
Double quotes being stripped from POST data after PHP upg
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic