Yes. Right. Usage of number eliminates runtime conversion. Dmitry.
> -----Original Message----- > From: Stanislav Malyshev [mailto:[EMAIL PROTECTED] > 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 > [EMAIL PROTECTED] http://www.zend.com/ > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php