Re: Patch for DataObject's class generator

From: Date: Tue, 21 Dec 2004 01:10:47 +0000
Subject: Re: Patch for DataObject's class generator
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-35187@lists.php.net to get a copy of this message
Hi Torsten, On Monday 20 December 2004 13:20, Torsten Roehr wrote: > thanks for your suggestion. Looking for "function getProperty" would not > work in case the user has added an ampersand in front of the method name > (function &getProperty) to return by reference - but including the opening > bracket is good. This will take care of the two cases I found and your ampersand case: preg_match("/function[\s]+[&]?$methodName\i(/", $input) > > I have also replaced stristr() with strstr() - because the search should be > case-sensitive. I think it should remain case insensitive given that PHP is case insensitive in regards to method names. Thanks, Alan -- Alan Richmond Aardwolf Web http://www.aardwolfweb.com

« previous php.pear.dev (#35187) next »