php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60295 bcompiler doesn't remove PHPDoc comments
Submitted: 2011-11-14 14:28 UTC Modified: 2017-01-10 07:58 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: Alexander dot Shepherd at Gmail dot com Assigned:
Status: Suspended Package: bcompiler (PECL)
PHP Version: 5.3.8 OS: Ubuntu
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: Alexander dot Shepherd at Gmail dot com
New email:
PHP Version: OS:

 

 [2011-11-14 14:28 UTC] Alexander dot Shepherd at Gmail dot com
Description:
------------
Output files include PHPDoc comments (/** Comments */) which are not meant to be 
there. This makes running the file fail at runtime.

Other comments are removed correctly.

Test script:
---------------
foo.php:
/**
 * Foo
 *
 * A sample file - this comment will break the output
 */

//This comment will be removed
echo 'FooBar';

bar.php:
$fh = fopen('o.phb', 'w');
bcompiler_write_header($fh);

bcompiler_write_file($fh, 'foo.php');

bcompiler_write_footer($fh);
fclose($fh);


include 'o.phb';

Expected result:
----------------
FooBar

Actual result:
--------------
Failure. No error shown.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-10 07:58 UTC] kalle@php.net
-Status: Open +Status: Suspended
 [2017-01-10 07:58 UTC] kalle@php.net
Suspending this report as the extension have not had a release for almost 6 years.  Please revive this if the extension once again shows life
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 10:01:29 2025 UTC