|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-01-26 11:16 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 13 09:00:01 2025 UTC |
Description: ------------ preg_match fails to return result matches in case matches variable gets assigned a value in function call statement. Reproduce code: --------------- <?php preg_match('/\wte/', 'teste', $m = array()); var_dump($m); ?> Expected result: ---------------- array(1) { [0]=> string(3) "ste" } Actual result: -------------- array(0) { }