|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-01-03 00:16 UTC] php at koterov dot ru
[2007-01-11 09:49 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 11:00:02 2025 UTC |
Description: ------------ Seems preg_match with /u modifier corrupts process memory or returns pointer to nirvana instead of pointer to a string. Reproduce code: --------------- <? preg_match('/(.{0,20})$/us', " ", $m); var_export($m); ?> Expected result: ---------------- space Actual result: -------------- something like array ( 0 => ' kjwekwjn', 1 => ' wereinoiu', ) where "kjwekwjn" and "wereinoiu" are random strings with random binary data (useless to copy-paste them here).