From de85c9cd7028a9804837969f1090e5b1b066d8b3 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 26 Jun 2006 13:23:46 +0000 Subject: [PATCH] Fixed bug #37862 (Integer pointer comparison to numeric value) --- NEWS | 2 ++ ext/soap/php_sdl.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index d028d35834..6fe05baaff 100644 --- a/NEWS +++ b/NEWS @@ -69,6 +69,8 @@ PHP NEWS - Fixed memory leaks in openssl streams context options. (Pierre) - Fixed handling of extremely long paths inside tempnam() function. (Ilia) - Fixed bug #37864 (file_get_contents() leaks on empty file). (Hannes) +- Fixed bug #37862 (Integer pointer comparison to numeric value). + (bugs-php at thewrittenword dot com) - Fixed bug #37807 (segmentation fault during SOAP schema import). (Tony) - Fixed bug #37780 (memory leak trying to execute a non existing file (CLI)). (Mike) diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c index e0f1a8dffa..a1c7ef54a4 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -2193,7 +2193,7 @@ static void add_sdl_to_cache(const char *fn, const char *uri, time_t t, sdlPtr s zend_hash_find(&tmp_bindings,(char*)&(*tmp)->binding,sizeof((*tmp)->binding), (void**)&binding_num) != SUCCESS) { } WSDL_CACHE_PUT_INT(*binding_num, out); - if (binding_num >= 0) { + if (*binding_num >= 0) { if ((*tmp)->binding->bindingType == BINDING_SOAP && (*tmp)->bindingAttributes != NULL) { sdlSoapBindingFunctionPtr binding = (sdlSoapBindingFunctionPtr)(*tmp)->bindingAttributes; WSDL_CACHE_PUT_1(binding->style, out); -- 2.40.0