|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-05-19 15:12 UTC] mike@php.net
-Status: Open
+Status: Feedback
[2010-05-19 15:12 UTC] mike@php.net
[2010-08-09 00:56 UTC] felipe@php.net
-Status: Feedback
+Status: Closed
-Assigned To:
+Assigned To: felipe
[2010-08-09 00:56 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 08:00:01 2025 UTC |
Description: ------------ Using an anonymous function as argument #2 in preg_replace_callback issues the following warning: preg_replace_callback() [function.preg-replace-callback]: Requires argument 2, '', to be a valid callback This warning was not thrown previously using PHP 5.3.1 Test script: --------------- echo preg_replace_callback('~-([a-z])~', function ($match) { return strtoupper($match[1]); }, 'hello-world'); Expected result: ---------------- helloworld Actual result: -------------- hello-world + warning