AMFPHP and mbstring

http://profisvet.com/best-college-application-essay-ever-rutgers/ best college application essay ever rutgers These days I was working on a flex 2/amfphp project and I discovered a very strange issue accidentally. social science phd dissertation proposal With PHP 5.2.4 installed both on local and remote server, the local amfphp works and the remote gave errors.

http://www.aftlv.com/argument-essay-on-gun-control/ argument essay on gun control

http://www.hotelsb.eu/research-paper-online/ research paper online Connecting to the service browser I was receiving the error “Channel.Ping.Failed” error and investingating a bit more in the fault message I discovered that the source error was:

http://www.hospitaldelsur.gov.co/?master-uk-thesis-plant-fibres-linen-cotton-detioration-parametres master uk thesis plant fibres linen cotton detioration parametres

http://csharpbuddy.com/english-paper-lahore-board-2013/ english paper lahore board 2013 The class {Amf3Broker} could not be found under the class path {/var/htdocs/amfphp/services/amfphp/Amf3Broker.php}

http://fmindesign.in/best-college-admission-essay-college-admission-essays-com/ best college admission essay college admission essays com

http://www.fiascoultimate.com/research-papers-meaning/ research papers meaning and the Amf3Broker php class does not exists anywhere in amfphp! But in the Actions.php file on line 78 I found this:

http://www.townandcountryinteriors.com/how-to-start-a-comparison-essay/ how to start a comparison essay

herbalviagra tablets in uk That’s the strange thing because the $handled variable should be true ’cause usually the first request sent by flash is a http://www.pcy0515.com/doctoral-thesis-in-educational-management/|doctoral thesis in educational management $messageType = “flex.messaging.messages.CommandMessage”. So I continued in my investigation logging all the messages that php was receiving. source So at the end I discovered that amfphp didn’t deserialize the amf data correctly! All the packet were corrupted (that’s why $messageType wasn’t handled), all the strings were not correctly parsed. http://www.hoplites.com.mx/graduate-essay-writing-services/ Finally I discovered the reason. It’s because mbstring. see The only difference between the remote server and the local server is the php.ini setting about mbstring overload and the others mbstring settings. here The remote server has mbstring.func_overload = 2, that means all the strings functions are affected and that’s why the amfphp methods were returing corrupted data. http://www.il-bandito.com/essay-writer-joke/ In fact I just changed this method into AMFDeserializer.php:

http://www.telmohenriquesstudio.com/homework-help-1492-1877/ homework help 1492 1877
1 2
3
4
5
6
function readBuffer($len)
{
$data = substr($this->raw_data,$this->current_byte,$len);
$this->current_byte += $len;
return $data;
}

essay history louisiana purchase into:

nsf dissertation
1
2
3
4
5
6
7
8
9
10
function readBuffer($len)
{
$data = "";
for($i = 0; $i < $len; $i++)
{
$data .= $this->raw_data{$i + $this->current_byte};
}
$this->current_byte += $len;
return $data;
}

http://foodland-stbarth.com/writing-help-uf/ writing help uf and the original error disappeared! Obviously I got other errors later, that’s because there are many other string functions in amfphp.. but at least I found the cause.

http://www.arcosrl.info/?dissertation-on-musical-theatre dissertation on musical theatre

punnett square homework help In fact, removing the mbstring.func_overload in the php.ini everything worked again!

help writing graduate essay