#33821 [Bgs]: register_globals and array
| From: | php-work at yandex dot ru | Date: | Fri, 22 Jul 2005 13:07:04 +0000 |
| Subject: | #33821 [Bgs]: register_globals and array | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-82323@lists.php.net to get a copy of this message | ||
ID: 33821
User updated by: php-work at yandex dot ru
-Summary: highlight_file and unterminated comment
Reported By: php-work at yandex dot ru
Status: Bogus
Bug Type: *General Issues
Operating System: Windows, Unix
PHP Version: 5CVS-2005-07-22 (dev)
New Comment:
But why 'highlight_string' does not print the error?
$a = "<? /* ";
highlight_string($a);
Previous Comments:
------------------------------------------------------------------------
[2005-07-22 14:47:46] sniper@php.net
That clearly is unterminated, nothing wrong here.
------------------------------------------------------------------------
[2005-07-22 14:33:49] php-work at yandex dot ru
Description:
------------
Function highlight_file(file) prints error "Warning: Unterminated
comment starting line 1" if in 'file':
<? /*
Reproduce code:
---------------
hl.php:
<?php
highlight_file("test.txt");
?>
test.txt:
<? /*
Actual result:
--------------
<code><span style="color: #000000">
<span style="color: #0000BB"><? <br />
<b>Warning</b>: Unterminated comment starting line 1 in
<b>c:\pub\hl.php</b> on line <b>2</b><br />
</span>
</span>
</code>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33821&edit=1