sander Sun Oct 6 13:00:34 2002 EDT
Modified files:
/php4/ext/standard basic_functions.c
Log:
You can't detect NULL nicely - false is better and more PHPish.
Index: php4/ext/standard/basic_functions.c
diff -u php4/ext/standard/basic_functions.c:1.526
php4/ext/standard/basic_functions.c:1.527
--- php4/ext/standard/basic_functions.c:1.526 Sun Oct 6 12:33:14 2002
+++ php4/ext/standard/basic_functions.c Sun Oct 6 13:00:33 2002
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: basic_functions.c,v 1.526 2002/10/06 16:33:14 sander Exp $ */
+/* $Id: basic_functions.c,v 1.527 2002/10/06 17:00:33 sander Exp $ */
#include "php.h"
#include "php_streams.h"
@@ -1442,7 +1442,7 @@
if (optarg != NULL) {
ZVAL_STRING(val, optarg, 1);
} else {
- ZVAL_NULL(val);
+ ZVAL_FALSE(val);
}
/* Add this option / argument pair to the result hash. */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php