]> granicus.if.org Git - php/commitdiff
Make putenv() return a proper error rather then NULL when invalid argument
authorIlia Alshanetsky <iliaa@php.net>
Mon, 3 Feb 2003 21:48:36 +0000 (21:48 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 3 Feb 2003 21:48:36 +0000 (21:48 +0000)
is passed.

ext/standard/basic_functions.c

index 6da8e401ef2e62e53c2d29664856bb68828a8be8..75866b57dcb8d382f641cdeb5de7afd675d3fe8c 100644 (file)
@@ -1402,6 +1402,9 @@ PHP_FUNCTION(putenv)
                        RETURN_FALSE;
                }
        }
+
+       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid parameter syntax.");
+       RETURN_FALSE;
 }
 /* }}} */
 #endif