#28280 [NEW]: php_strip_whitespace() are not flushed

From: Date: Wed, 05 May 2004 07:40:04 +0000
Subject: #28280 [NEW]: php_strip_whitespace() are not flushed
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-59237@lists.php.net to get a copy of this message
From: solace at ezmail dot ru Operating system: Win2K PHP version: 5.0.0RC2 PHP Bug Type: Zend Engine 2 problem Bug description: php_strip_whitespace() are not flushed Description: ------------ Results of php_strip_whitespace() are not flushed upon exit. Create new folder, place there php.exe and php5ts.dll, create a new php file a.php with the code below, and run php.exe -n a.php However, manually placing flush() before exit fixes the problem. And it WAS working without flush() in Beta2 (version I used before). p.s. Maybe modify this function to return result as a string? Reproduce code: --------------- <? function str_php_strip_whitespace($filename) { exec("php.exe -n a.php $filename", $buf); return $buf[0]; } if ($argc > 1) { php_strip_whitespace($argv[1]); //flush(); // manual fix exit; } echo str_php_strip_whitespace(__FILE__); ?> Expected result: ---------------- Source of a.php without whitespaces Actual result: -------------- Nothing -- Edit bug report at http://bugs.php.net/?id=28280&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28280&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28280&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28280&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28280&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28280&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28280&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28280&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28280&r=support Expected behavior: http://bugs.php.net/fix.php?id=28280&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28280&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28280&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28280&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28280&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28280&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28280&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28280&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28280&r=float

« previous php.bugs (#59237) next »