Re: Re: Cannot package

From: Date: Sat, 17 Jan 2004 19:49:20 +0000
Subject: Re: Re: Cannot package
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-25123@lists.php.net to get a copy of this message
On Sat, 17 Jan 2004 12:24:08 -0500 Greg Beaver <cellog@php.net> wrote: > Hi, found the bug, killed it, and closed :) > > grab PEAR/Common.php from CVS and package away on SOAP. > > The bug was that whoever wrote anaylzeSourceCode() assumed that {} > brackets would always be balanced in a string that contained variables > > like "this $string {" > > However, this is not required, and so the correct handling is to > ignore all content between " and ". Most strings are returned as a > single T_CONSTANT_ENCAPSED_STRING like "this string {", only strings > that contain PHP variables are handled differently Nice shot :) I'm dreaming about the usage of the reflection API in a near future :D pierre

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