php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28280 php_strip_whitespace() are not flushed
Submitted: 2004-05-05 09:40 UTC Modified: 2005-02-03 01:00 UTC
Votes:4
Avg. Score:5.0 ± 0.0
Reproduced:4 of 4 (100.0%)
Same Version:3 (75.0%)
Same OS:1 (25.0%)
From: solace at ezmail dot ru Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5.0.0RC2 OS: Win2K
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: solace at ezmail dot ru
New email:
PHP Version: OS:

 

 [2004-05-05 09:40 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-26 04:54 UTC] sniper@php.net
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


 [2005-02-03 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 12:01:27 2024 UTC