|  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: None
 [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. 


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


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...

 [2019-08-22 14:24 UTC] curtiswrutzinger at icloud dot com
The following pull request has been associated:

Patch Name: Fix #78429: opcache_compile_file(__FILE__); segfaults
On GitHub:
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Jan 23 12:04:05 2022 UTC