Fixed bug #37862 (Integer pointer comparison to numeric value)

This commit is contained in:
Dmitry Stogov 2006-06-26 13:23:46 +00:00
parent 862c4d2345
commit de85c9cd70
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@ -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)

View 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);