RE: [PHP-DEV] [PATCH] Major optimization for heredocs/interpolated strings

From: Date: Thu, 17 May 2007 06:15:12 +0000
Subject: RE: [PHP-DEV] [PATCH] Major optimization for heredocs/interpolated strings
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-29488@lists.php.net to get a copy of this message
Yes. Right. Usage of number eliminates runtime conversion. Dmitry. > -----Original Message----- > From: Stanislav Malyshev [mailto:stas@zend.com] > Sent: Wednesday, May 16, 2007 9:23 PM > To: Matt Wilmas > Cc: internals@lists.php.net; Dmitry Stogov; 'Andi Gutmans' > Subject: Re: [PHP-DEV] [PATCH] Major optimization for > heredocs/interpolated strings > > > > The updated 5.2 patch is at the same address, > > http://realplain.com/php/scanner_optimizations_5_2.diff, > > and the > > original was moved to > > http://realplain.com/php/scanner_optimizations_5_2-v1.diff > > I've noticed a slight difference between how PHP worked > without and with > this patch. Previously, if you had this code: > echo "$arr[123]"; > > then the opcode generated would have "123" as string. Now it > has it as > number. Not sure if it's important, just to be aware of it. > -- > Stanislav Malyshev, Zend Products Engineer > stas@zend.com http://www.zend.com/ > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.internals (#29488) next »