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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
45 + 25 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 05:01:28 2024 UTC