Merge branch 'PHP-5.4' into PHP-5.5

This commit is contained in:
Xinchen Hui committed 2013-01-09 10:57:47 +08:00
commit 6deb8361f3
2 files changed
+9 -1

No files matched your search

+1 -1
View File
@@ -1811,7 +1811,7 @@ PHP_FUNCTION(strpos)
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;
}
+8
View File
@@ -0,0 +1,8 @@
--TEST--
Bug #63943 (Bad warning text from strpos() on empty needle)
--FILE--
<?php
strpos("lllllll", '');
?>
--EXPECTF--
Warning: strpos(): Empty needle in %sbug63943.php on line %d