Bug #11874 Updated: <script> way of inline'ing PHP has quite strict syntax

From: Date: Wed, 04 Jul 2001 23:25:51 +0000
Subject: Bug #11874 Updated: <script> way of inline'ing PHP has quite strict syntax
Groups: php.dev 
Request: Send a blank email to php-dev+get-58933@lists.php.net to get a copy of this message
ID: 11874 Updated by: jeroen Reported By: vinicius@empresa-digital.com.br Old-Status: Feedback Status: Open Old-Bug Type: Scripting Engine problem Bug Type: Documentation problem Operating system: PHP Version: Any Assigned To: Comments: The script way of inline-ing php only works with <script language="php">, and nothing else (no other attributes). This is a speed issue: Zend doesn't implement a whole html-parser just to support this... in only accepts whiteshace difference and case-diffs. There is no use for this too, since it will *not* be send to the browser. (RTFM on 'What it PHP': a preprocessor) Documentation should be more clear on this, so changed to an open documention bug. For the documenter: may add example that the context is not important? (i.e. <font size="<script php>echo '+1'</script>"> works) Previous Comments: --------------------------------------------------------------------------- [2001-07-04 13:26:27] derick@php.net I don't get what you are meaning here. Can you add an example of a whole line of both cases (one with the error, and one that works)? Derick --------------------------------------------------------------------------- [2001-07-04 07:31:00] vinicius@empresa-digital.com.br The attribute 'content' inside '<script' tag is not being properly recognized in version 4.0.5. If I insert it, the preprocessor returns an error condition. If I strip it, everything works fine. --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11874&edit=2

« previous php.dev (#58933) next »