Hi everyone: This may well be a stupid question, but I've spend enough time staring blankly at zend_compile.c/zend_execute.c that I figured it was time to ask. :)
Say I have a section of code like this: <?php $s1 = 'foo' . 'bar' . 'baz'; $s2 = 'foobarbaz'; ?> In the PHP bytecode (I hope I'm using the right terminology - I mean the stuff in the opline; the stuff that gets stored in the cache under APC or Zend cache), is there any functional difference between the assignment to $s1 and the assignment to $s2? Or, to put it more precisely, is Zend currently able to figure out that the strings on both sides of the concatenation operator are constants, and don't need to be concatenated at runtime? If not, can anyone explain the barriers to doing something like this? I'm attempting to learn a bit of the gory details of the interpreter, so the more pointers into the source anyone can provide, the better off I'll be. Thanks a lot, - Dave [EMAIL PROTECTED] -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php