Req #31284 [Opn->Wfx]: php mime/type
| From: | requinix@php.net | Date: | Sat, 01 Nov 2014 23:18:50 +0000 |
| Subject: | Req #31284 [Opn->Wfx]: php mime/type | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-188408@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=31284&edit=1
ID: 31284
Updated by: requinix@php.net
Reported by: teunkloosterman at gmail dot com
Summary: php mime/type
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
Operating System: Irrelevant
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
<script> support is being removed entirely in PHP 7.
https://wiki.php.net/rfc/remove_alternative_php_tags
Previous Comments:
------------------------------------------------------------------------
[2009-02-17 23:32:01] ne01026 at shark dot 2a dot pl
Actually, you get hit by this problem only if your script embedded in HTML 4.01 code contains
GREATER-THAN SIGN (>) because that is when you cannot use the processing instruction syntax.
I think full HTML syntax should be supported,
with comment stripping and trailing comments, that is
<SCRIPT TYPE="text/php" RUNAT=SERVER ><!-- This is a PHP script
//--></SCRIPT >
------------------------------------------------------------------------
[2004-12-24 12:04:29] teunkloosterman at gmail dot com
Description:
------------
when making a php document with the <script></script> construct, you recommend typing:
<script language="php"></script> but this is widely deprecated in html and
xhtml. I think it's better to use <script type="text/php"></script> since
this is more relevant because it's used everywhere
PS. I've also tried: application/x-httpd-php as mime/type
Reproduce code:
---------------
<html>
<head>
<title></title>
</head>
<body>
<script type="text/php">
echo "hello";
</script>
</body>
</html>
Expected result:
----------------
hello
Actual result:
--------------
javascript error
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=31284&edit=1