Doc #73142 [NEW]: php_strip_whitespace does not work on files with short tags

From: Date: Thu, 22 Sep 2016 09:51:26 +0000
Subject: Doc #73142 [NEW]: php_strip_whitespace does not work on files with short tags
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13929@lists.php.net to get a copy of this message
From: rob dot bast at gmail dot com Operating system: Irrelevant PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:php_strip_whitespace does not work on files with short tags Description: ------------ Using php_strip_whitespace on a file that makes use of the short tag notation <? does not result in any whitespace being stripped (such as docblocks etc). This could/should be explicitly mentioned in the documentation. Test script: --------------- <? /** * does not get removed */ Expected result: ---------------- % php -r 'var_dump(php_strip_whitespace("test.php"));' Command line code:1: string(7) "<?\n " Actual result: -------------- % php -r 'var_dump(php_strip_whitespace("test.php"));' Command line code:1: string(37) "<?\n\n/**\n * does not get removed\n */\n\n" -- Edit bug report at https://bugs.php.net/bug.php?id=73142&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73142&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73142&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73142&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=73142&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=73142&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=73142&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=73142&r=needscript Try newer version: https://bugs.php.net/fix.php?id=73142&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=73142&r=support Expected behavior: https://bugs.php.net/fix.php?id=73142&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=73142&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=73142&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=73142&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73142&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=73142&r=dst IIS Stability: https://bugs.php.net/fix.php?id=73142&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=73142&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=73142&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=73142&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=73142&r=mysqlcfg

« previous php.doc.bugs (#13929) next »