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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2019 The PHP Group
All rights reserved.
Last updated: Fri Aug 23 04:01:26 2019 UTC