note 92111 deleted from function.preg-replace by danbrown

From: Date: Thu, 09 Jul 2009 14:03:02 +0000
Subject: note 92111 deleted from function.preg-replace by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-158107@lists.php.net to get a copy of this message
Note Submitter: R. Swets ---- 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!

« previous php.notes (#158107) next »