[php-maint] Bug#400995: php5-cli: Sometimes doesn't flush output on exit

Andreas Ferber aferber at marcant.net
Thu Nov 30 00:09:37 UTC 2006


Package: php5-cli
Version: 5.2.0-7
Severity: important

Hi,

in some cases it seems that the CLI php doesn't flush its output when
the script exits and output is not connected to a terminal (thus not
line buffered).

Unfortunately, until now I haven't been able to find a small script that
reproduces the problem. The case I stumbled upon happens with the
testsuite of the symfony php framework. To reproduce it, please follow
these steps:

1. check out symfony from symfony svn:
    % svn co http://svn.symfony-project.com/trunk symfony
2. change into the freshly checked out symfony directory and run
    % php5 ./test/functional/crudTest.php | tee /dev/null
3. to see how the correct output should be (modulo some colorization),
   remove the "| tee /dev/null" from the previous command

If the testsuite is modified to call flush() on exit, the output isn't
truncated anymore.

I'm pretty sure that symfony itself doesn't disable output flushing
itself (no output buffering etc. involved, plus it works with php
5.1.6).

Andreas

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (650, 'testing'), (250, 'unstable'), (200, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18.2-skas3-toshiba
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)

Versions of packages php5-cli depends on:
ii  libbz2-1 1.0.3-6                         high-quality block-sorting file co
ii  libc6    2.3.6.ds1-8                     GNU C Library: Shared libraries
ii  libcomer 1.39+1.40-WIP-2006.11.14+dfsg-1 common error description library
ii  libdb4.4 4.4.20-8                        Berkeley v4.4 Database Libraries [
ii  libkrb53 1.4.4-4                         MIT Kerberos runtime libraries
ii  libmagic 4.17-4                          File type determination library us
ii  libncurs 5.5-5                           Shared libraries for terminal hand
ii  libpcre3 6.7-1                           Perl 5 Compatible Regular Expressi
ii  libssl0. 0.9.8c-3                        SSL shared libraries
ii  libxml2  2.6.27.dfsg-1                   GNOME XML library
ii  mime-sup 3.37-1                          MIME files 'mime.types' & 'mailcap
ii  php5-com 5.2.0-7                         Common files for packages built fr
ii  ucf      2.0017                          Update Configuration File: preserv
ii  zlib1g   1:1.2.3-13                      compression library - runtime

php5-cli recommends no packages.

-- no debconf information




More information about the pkg-php-maint mailing list