Comment 2 for bug 988177

Revision history for this message
bieli (marcin-bieli) wrote :

I think, libnusoap-php using older ereg/eregi PHP functions and Mantis SOAP API throw unknown SOAP Fault sth. like "Deprecated ereg function". It is reason, why SOAP API don't started.
It is problem for PHP version >= 5.3, when I have PHP <= 5.2 problem don;t exists.

Below I publish lines of libnusoap-php when I changed PHP function ereg/eregi into preg_match:
$ grep "preg_match" -n /usr/share/php/nusoap/nusoap.php
3387: if (! preg_match("'.*$domain$'i", $this->host)) {
3394: if (! preg_match("'^$path.*'i", $this->path)) {
3657: if (preg_match('/wsdl/', $qs) ){
3728: if(preg_match('/^(ISO-8859-1|US-ASCII|UTF-8)$/i',$enc)){
3757: if (preg_match('/^(ISO-8859-1|US-ASCII|UTF-8)$/i', $enc)) {
4217: if(preg_match('/^(ISO-8859-1|US-ASCII|UTF-8)$/i',$enc)){
6453: if (preg_match("/encoding=[\"']([^\"']*)[\"']/", $xml_decl, $res)) {