mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-27 19:05:43 +00:00
Fixed bug #64432 (more empty delimiter warning in strX methods)
This commit is contained in:
1 parent
0881ff0466
commit
0fd3572f4e
4 files changed
+5
-4
No files matched your search
@@ -1715,7 +1715,7 @@ PHP_FUNCTION(stristr)
|
||||
if (Z_TYPE_P(needle) == IS_STRING) {
|
||||
char *orig_needle;
|
||||
if (!Z_STRLEN_P(needle)) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Empty delimiter");
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Empty needle");
|
||||
efree(haystack_dup);
|
||||
RETURN_FALSE;
|
||||
}
|
||||
@@ -1765,7 +1765,7 @@ PHP_FUNCTION(strstr)
|
||||
|
||||
if (Z_TYPE_P(needle) == IS_STRING) {
|
||||
if (!Z_STRLEN_P(needle)) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Empty delimiter");
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Empty needle");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user