summaryrefslogtreecommitdiff
path: root/ext/standard/string.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2013-01-09 10:53:20 +0800
committerXinchen Hui <laruence@php.net>2013-01-09 10:53:20 +0800
commitc05ee74e7ff28b49018bf3e8f452bfd5386d1b68 (patch)
treed0e57bb8482ca0697d4ef11d70f124332db339f4 /ext/standard/string.c
parent67c662a0a2615d52215dccc4805e8eb989df7eab (diff)
downloadphp-git-c05ee74e7ff28b49018bf3e8f452bfd5386d1b68.tar.gz
Fixed bug #63943 (Bad warning text from strpos() on empty needle)
Diffstat (limited to 'ext/standard/string.c')
-rw-r--r--ext/standard/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c
index b17ad506ef..907301dfdf 100644
--- a/ext/standard/string.c
+++ b/ext/standard/string.c
@@ -1744,7 +1744,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;
}