#28280 [Opn->Fbk]: php_strip_whitespace() are not flushed

From: Date: Wed, 26 Jan 2005 03:54:16 +0000
Subject: #28280 [Opn->Fbk]: php_strip_whitespace() are not flushed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-72846@lists.php.net to get a copy of this message
ID: 28280 Updated by: sniper@php.net Reported By: solace at ezmail dot ru -Status: Open +Status: Feedback Bug Type: Zend Engine 2 problem Operating System: Win2K PHP Version: 5.0.0RC2 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2004-05-05 09:40:03] solace at ezmail dot ru 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 this bug report at http://bugs.php.net/?id=28280&edit=1

« previous php.bugs (#72846) next »