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
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php