Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_execute.c zend_execute.h

From: Date: Mon, 19 Jan 2004 20:37:41 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_execute.c zend_execute.h
References: 1 2 3  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2241@lists.php.net to get a copy of this message
> At 12:08 PM 1/19/2004 -0500, Sterling Hughes wrote: > >> andi Mon Jan 19 07:22:02 2004 EDT > >> > >> Modified files: > >> /ZendEngine2 zend_execute.c zend_execute.h > >> Log: > >> - Hopefully fix bug #26696. > >> - Please let me know if hell-breaks loose > >> > > > >Hell breaks loose. > > > >Take the following example (ripped from bug report #26696): > > > ><?php > > > >//$str = Array('a', 's', 'd', 'd', '/', > >'?'); > >$str = 'asdd/?'; > >$len = strlen($str); > >for ($i = 0; $i < $len; $i++) { > > switch ($str[$i]) { > > case '?': > > echo '?'; > > break; > > } > >} > > > >?> > > > >This doesn't properly report '?' > > > >Change the example so that '?' is at the beginning of the string, and it > >reports > >it everytime, change the example so that '?' is the second letter of the > >string, > >it never reports it. The iteration over the string works fine, as I can > >print out > >every character with print $str[$i] . "\n"; > > Are you sure you completely rebuilt PHP? It works for me no matter where I > put the ?. > sapi/cli/php ../foo.php > ? forgot the full recompile, works now. -sterling -- "Reductionists like to take things apart. The rest of us are just trying to get it together." - Larry Wall, Programming Perl, 3rd Edition

« previous php.zend-engine.cvs (#2241) next »