#39112 [Opn->Csd]: Typographical error in error message
| From: | tony2001@php.net | Date: | Tue, 10 Oct 2006 12:44:46 +0000 |
| Subject: | #39112 [Opn->Csd]: Typographical error in error message | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-103361@lists.php.net to get a copy of this message | ||
ID: 39112
Updated by: tony2001@php.net
Reported By: a at b dot c dot de
-Status: Open
+Status: Closed
Bug Type: PCRE related
Operating System: Windows XP
PHP Version: 5.1.6
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2006-10-10 12:25:45] a at b dot c dot de
Description:
------------
The Warning: level message that is triggered by preg_replace() when the
pattern is a string, but the replacement is an array has one or two
typos: "in" instead of "is", and a full stop that looks out of place.
Reproduce code:
---------------
<?php
$pattern = "/foo/";
$replacement = array('bar','baz');
$string = "Womble";
preg_replace($pattern, $replacement, $string);
?>
Expected result:
----------------
Warning: preg_replace(): Parameter mismatch, pattern is a string while
replacement is an array in C:\test.php on line 8
Actual result:
--------------
Warning: preg_replace(): Parameter mismatch, pattern is a string while
replacement in an array. in C:\test.php on line 8
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39112&edit=1