Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromphp/php-src

Commit15aaa9c

Browse files
committed
Merge branch 'PHP-5.3' into PHP-5.4
2 parents6e684e6 +c05ee74 commit15aaa9c

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

‎ext/standard/string.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1811,7 +1811,7 @@ PHP_FUNCTION(strpos)
18111811

18121812
if (Z_TYPE_P(needle)==IS_STRING) {
18131813
if (!Z_STRLEN_P(needle)) {
1814-
php_error_docref(NULLTSRMLS_CC,E_WARNING, "Emptydelimiter");
1814+
php_error_docref(NULLTSRMLS_CC,E_WARNING, "Emptyneedle");
18151815
RETURN_FALSE;
18161816
}
18171817

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
--TEST--
2+
Bug #63943 (Bad warning text from strpos() on empty needle)
3+
--FILE--
4+
<?php
5+
strpos("lllllll",'');
6+
?>
7+
--EXPECTF--
8+
Warning: strpos(): Empty needle in %sbug63943.php on line %d

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp