tweak the fix
authorAntony Dovgal <tony2001@php.net>
Tue, 27 Dec 2005 23:26:55 +0000 (23:26 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 27 Dec 2005 23:26:55 +0000 (23:26 +0000)
ext/standard/array.c

index bb6338dd73ea5063cfa6ad0221476013d33ec16d..53dec421c6a35a66780d0bbce6b8863bb685de7b 100644 (file)
@@ -4347,7 +4347,7 @@ PHP_FUNCTION(array_map)
                        fci.params = &params[1];
                        fci.no_separation = 0;
 
-                       if (!zend_call_function(&fci, &fci_cache TSRMLS_CC) == SUCCESS || !result) {
+                       if (zend_call_function(&fci, &fci_cache TSRMLS_CC) != SUCCESS || !result) {
                                php_error_docref(NULL TSRMLS_CC, E_WARNING, "An error occurred while invoking the map callback");
                                efree(array_len);
                                efree(args);