note 92111 added to function.preg-replace

From: Date: Thu, 09 Jul 2009 10:26:18 +0000
Subject: note 92111 added to function.preg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-158096@lists.php.net to get a copy of this message
Note the limit parameter being -1 by default. Some IDEs report the limit parameter null by default. Entering limit=null actually casts to 0, meaning no replacements being made. PHP does not give any warnings about this although the call would be entirely retarded (why call a replace if i do not want to replace anything!?). Took me an hour before i noticed this stupid error! ---- Server IP: 91.199.167.18 Probable Submitter: 87.213.65.199 ---- Manual Page -- http://www.php.net/manual/en/function.preg-replace.php Edit -- https://master.php.net/note/edit/92111 Del: integrated -- https://master.php.net/note/delete/92111/integrated Del: useless -- https://master.php.net/note/delete/92111/useless Del: bad code -- https://master.php.net/note/delete/92111/bad+code Del: spam -- https://master.php.net/note/delete/92111/spam Del: non-english -- https://master.php.net/note/delete/92111/non-english Del: in docs -- https://master.php.net/note/delete/92111/in+docs Del: other reasons-- https://master.php.net/note/delete/92111 Reject -- https://master.php.net/note/reject/92111 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#158096) next »