cvs: php4 /ext/standard basic_functions.c
| From: | Ilia Alshanetsky | Date: | Mon, 03 Feb 2003 21:48:37 +0000 |
| Subject: | cvs: php4 /ext/standard basic_functions.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-18421@lists.php.net to get a copy of this message | ||
iliaa Mon Feb 3 16:48:37 2003 EDT
Modified files:
/php4/ext/standard basic_functions.c
Log:
Make putenv() return a proper error rather then NULL when invalid argument
is passed.
Index: php4/ext/standard/basic_functions.c
diff -u php4/ext/standard/basic_functions.c:1.569 php4/ext/standard/basic_functions.c:1.570
--- php4/ext/standard/basic_functions.c:1.569 Thu Jan 30 00:00:40 2003
+++ php4/ext/standard/basic_functions.c Mon Feb 3 16:48:36 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: basic_functions.c,v 1.569 2003/01/30 05:00:40 pollita Exp $ */
+/* $Id: basic_functions.c,v 1.570 2003/02/03 21:48:36 iliaa Exp $ */
#include "php.h"
#include "php_streams.h"
@@ -1402,6 +1402,9 @@
RETURN_FALSE;
}
}
+
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid parameter syntax.");
+ RETURN_FALSE;
}
/* }}} */
#endif