mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
- Better error message
This commit is contained in:
parent
3d2a5940a2
commit
408bb1e48d
1 changed files with 1 additions and 5 deletions
|
@ -645,11 +645,7 @@ static void php_split(INTERNAL_FUNCTION_PARAMETERS, int icase)
|
|||
/* No more matches */
|
||||
regfree(&re);
|
||||
|
||||
if (icase) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid Regular Expression to spliti()");
|
||||
} else {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid Regular Expression to split()");
|
||||
}
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid Regular Expression");
|
||||
|
||||
zend_hash_destroy(Z_ARRVAL_P(return_value));
|
||||
efree(Z_ARRVAL_P(return_value));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue