php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42 convert program dies on certain comments
Submitted: 1998-02-06 04:27 UTC Modified: 1998-02-06 12:59 UTC
From: a dot hacker at clear dot net dot nz Assigned:
Status: Closed Package: Other
PHP Version: 3.0b4 OS: Win32
Private report: No CVE-ID:
 [1998-02-06 04:27 UTC] a dot hacker at clear dot net dot nz
Small niggly problem but I was converting a script I stumbled across and ran it through the PHP3->3 converter.
The converter died on comments ending in semi-colons like this
/* this is a comment */ ;

Don't know if it's a valid thing or just poor scripting but I thought I'd point it out. 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-02-06 12:59 UTC] zeev
PHP/FI 2 accepted this, although IMHO it shouldn't have.  The convertor
'eats' the comment, and is left with a semicolon.  Since empty statements
weren't valid in PHP/FI 2, the convertor rejects that code.
It's possible to fix this specific issue, but it has potential to break
other things, so I'd rather not do it...

 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Wed Apr 16 18:01:53 2014 UTC