mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
# Oops - functions with multiple optional args suck
This commit is contained in:
parent
70eb0c78f8
commit
9c192f526e
@ -708,7 +708,7 @@ PHP_FUNCTION(imagejpeg)
|
||||
}
|
||||
}
|
||||
|
||||
if (argc > 1 && strlen(fn)) {
|
||||
if (argc > 1 && fn && strlen(fn)) {
|
||||
fp = fopen(fn, "wb");
|
||||
if (!fp) {
|
||||
php_error(E_WARNING, "ImageJpeg: unable to open %s for writing", fn);
|
||||
|
Loading…
Reference in New Issue
Block a user