]> granicus.if.org Git - php/commitdiff
Fixed bug #37862 (Integer pointer comparison to numeric value)
authorDmitry Stogov <dmitry@php.net>
Mon, 26 Jun 2006 13:23:46 +0000 (13:23 +0000)
committerDmitry Stogov <dmitry@php.net>
Mon, 26 Jun 2006 13:23:46 +0000 (13:23 +0000)
NEWS
ext/soap/php_sdl.c

diff --git a/NEWS b/NEWS
index d028d35834fa549492ee204b1b26c8f07d9bc3f3..6fe05baaff5c1922aee9d5bff38d215bb5191cdc 100644 (file)
--- 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)
index e0f1a8dffafa90663bfb3b02fed008b717958a9c..a1c7ef54a44d5398d165c4d60b769d3201240578 100644 (file)
@@ -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);