Bug #60295 [NEW]: bcompiler doesn't remove PHPDoc comments
| From: | Alexander dot Shepherd at Gmail dot com | Date: | Mon, 14 Nov 2011 14:28:24 +0000 |
| Subject: | Bug #60295 [NEW]: bcompiler doesn't remove PHPDoc comments | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-165120@lists.php.net to get a copy of this message | ||
From:
Operating system: Ubuntu
PHP version: 5.3.8
Package: bcompiler
Bug Type: Bug
Bug description:bcompiler doesn't remove PHPDoc comments
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.
--
Edit bug report at https://bugs.php.net/bug.php?id=60295&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60295&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60295&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60295&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=60295&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60295&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=60295&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=60295&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=60295&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=60295&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=60295&r=support
Expected behavior: https://bugs.php.net/fix.php?id=60295&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=60295&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=60295&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=60295&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60295&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=60295&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=60295&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=60295&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=60295&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=60295&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=60295&r=mysqlcfg