File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -403,12 +403,12 @@ static bool php_zip_parse_options(HashTable *options, zip_options *opts)
403
403
}
404
404
405
405
if (Z_STRLEN_P (option ) == 0 ) {
406
- zend_type_error ("Option \"remove_path\" cannot be empty" );
406
+ zend_value_error ("Option \"remove_path\" cannot be empty" );
407
407
return false;
408
408
}
409
409
410
410
if (Z_STRLEN_P (option ) >= MAXPATHLEN ) {
411
- zend_type_error ("Option \"remove_path\" must be less than %d bytes" , MAXPATHLEN - 1 );
411
+ zend_value_error ("Option \"remove_path\" must be less than %d bytes" , MAXPATHLEN - 1 );
412
412
return false;
413
413
}
414
414
opts -> remove_path_len = Z_STRLEN_P (option );
@@ -423,12 +423,12 @@ static bool php_zip_parse_options(HashTable *options, zip_options *opts)
423
423
}
424
424
425
425
if (Z_STRLEN_P (option ) == 0 ) {
426
- zend_type_error ("Option \"add_path\" cannot be empty" );
426
+ zend_value_error ("Option \"add_path\" cannot be empty" );
427
427
return false;
428
428
}
429
429
430
430
if (Z_STRLEN_P (option ) >= MAXPATHLEN ) {
431
- zend_type_error ("Option \"add_path\" must be less than %d bytes" , MAXPATHLEN - 1 );
431
+ zend_value_error ("Option \"add_path\" must be less than %d bytes" , MAXPATHLEN - 1 );
432
432
return false;
433
433
}
434
434
opts -> add_path_len = Z_STRLEN_P (option );
You can’t perform that action at this time.
0 commit comments