Make putenv() return a proper error rather then NULL when invalid argument

is passed.
This commit is contained in:
Ilia Alshanetsky 2003-02-03 21:48:36 +00:00
parent 065e4d6550
commit d89c38961b

View File

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