From: vask at dmglobal dot net Operating system: Any PHP version: 5.2.6 PHP Bug Type: Feature/Change Request Bug description: Support for <? ?> within NOWDOC/HEREDOC syntax
Description: ------------ NOWDOC/HEREDOC only allows PHP values such as those allowed within a quoted string. Permitting PHP code (such as functions) within NOWDOC/HEREDOC will allow more flexibility for coding. Also, when using a text editor, syntax styling for PHP and syntax styling for another language specified by the NOWDOC/HEREDOC within the same file would be more readable as breaking apart the NOWDOC/HEREDOC for a function call would no longer be necessary. In the below examples I would like to reemphasize the importance of: - PHP code with PHP syntax styling - SQL code with SQL syntax styling $sql = <<<SQL SELECT <?= get_it(); ?> LIMIT 1 SQL; Instead of: $sql = <<<SQL SELECT SQL; $sql .= get_it(); $sql .= <<<SQL LIMIT 1 SQL; Reproduce code: --------------- $sql = <<<SQL SELECT <?= get_it(); ?> LIMIT 1 SQL; Expected result: ---------------- $sql = <<<SQL SELECT <?= get_it(); ?> LIMIT 1 SQL; Actual result: -------------- Does NOT run. -- Edit bug report at http://bugs.php.net/?id=46588&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46588&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46588&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46588&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46588&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46588&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=46588&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46588&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46588&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46588&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46588&r=support Expected behavior: http://bugs.php.net/fix.php?id=46588&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46588&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46588&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46588&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46588&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46588&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46588&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46588&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46588&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46588&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46588&r=mysqlcfg