From: Dmitry Stogov Date: Wed, 15 Mar 2006 16:13:18 +0000 (+0000) Subject: Fixed Bug #36614 (Segfault when using Soap) X-Git-Tag: php-5.1.3RC2~103 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eacb27d2daa91350b583bac15f11275a7f645186;p=php Fixed Bug #36614 (Segfault when using Soap) --- diff --git a/NEWS b/NEWS index adebf83924..302643c797 100644 --- a/NEWS +++ b/NEWS @@ -6,9 +6,10 @@ PHP NEWS - Added overflow checks to wordwrap() function. (Ilia) - Removed the E_STRICT deprecation notice from "var". (Ilia) - Fixed debug_zval_dump() to support private and protected members. (Dmitry) -- Fixed bug #36629 (SoapServer::handle() exits on SOAP faults). (Dmitry) - Fixed bug #36697 (Transparency is lost when using imagecreatetruecolor). - (Pierre) + (Pierre) +- Fixed bug #36629 (SoapServer::handle() exits on SOAP faults). (Dmitry) +- Fixed Bug #36614 (Segfault when using Soap). (Dmitry) - Fixed bug #36568 (memory_limit setting on win32 has no effect). (Dmitry) - Fixed bug #35988 (Unknown persistent list entry type in module shutdown). (Dmitry) diff --git a/ext/soap/php_schema.c b/ext/soap/php_schema.c index aa04525cc8..3753245bd5 100644 --- a/ext/soap/php_schema.c +++ b/ext/soap/php_schema.c @@ -2117,7 +2117,7 @@ static void schema_attribute_fixup(sdlCtx *ctx, sdlAttributePtr attr) } if (attr->name == NULL && attr->ref != NULL) { char *name = strrchr(attr->ref, ':'); - if (*name) { + if (name) { attr->name = estrdup(name+1); } else{ attr->name = estrdup(attr->ref); diff --git a/ext/soap/tests/bugs/bug36614.phpt b/ext/soap/tests/bugs/bug36614.phpt new file mode 100755 index 0000000000..ba6734812d --- /dev/null +++ b/ext/soap/tests/bugs/bug36614.phpt @@ -0,0 +1,13 @@ +--TEST-- +Bug #36614 (Segfault when using Soap) +--SKIPIF-- + +--INI-- +soap.wsdl_cache_enabled=0 +--FILE-- + +--EXPECT-- +ok diff --git a/ext/soap/tests/bugs/bug36614.wsdl b/ext/soap/tests/bugs/bug36614.wsdl new file mode 100755 index 0000000000..ecf1b1b2fe --- /dev/null +++ b/ext/soap/tests/bugs/bug36614.wsdl @@ -0,0 +1,204 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ext/soap/tests/bugs/bug36629.phpt b/ext/soap/tests/bugs/bug36629.phpt index ae646c27f3..08b74a5fca 100755 --- a/ext/soap/tests/bugs/bug36629.phpt +++ b/ext/soap/tests/bugs/bug36629.phpt @@ -1,5 +1,7 @@ --TEST-- Bug #36629 (SoapServer::handle() exits on SOAP faults) +--SKIPIF-- + --FILE--