cvs: php4 /ext/standard basic_functions.c

From: Date: Sun, 06 Oct 2002 17:00:34 +0000
Subject: cvs: php4 /ext/standard basic_functions.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-14621@lists.php.net to get a copy of this message
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. */

« previous php.cvs (#14621) next »