Debian Bug report logs - #400995
php5-cli: Sometimes doesn't flush output on exit

version graph

Package: php5-cli; Maintainer for php5-cli is (unknown);

Reported by: Andreas Ferber <aferber@marcant.net>

Date: Thu, 30 Nov 2006 00:18:02 UTC

Severity: important

Tags: moreinfo, unreproducible

Found in version php5/5.2.0-7

Done: Ondřej Surý <ondrej@sury.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, aferber@marcant.net, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#400995; Package php5-cli. (full text, mbox, link).


Acknowledgement sent to Andreas Ferber <aferber@marcant.net>:
New Bug report received and forwarded. Copy sent to aferber@marcant.net, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Andreas Ferber <aferber@marcant.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: php5-cli: Sometimes doesn't flush output on exit
Date: Thu, 30 Nov 2006 01:09:37 +0100
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



Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#400995; Package php5-cli. (full text, mbox, link).


Acknowledgement sent to sean finney <seanius@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (full text, mbox, link).


Message #10 received at 400995@bugs.debian.org (full text, mbox, reply):

From: sean finney <seanius@debian.org>
To: Andreas Ferber <aferber@marcant.net>, 400995@bugs.debian.org
Subject: Re: [php-maint] Bug#400995: php5-cli: Sometimes doesn't flush output on exit
Date: Sat, 09 Dec 2006 23:44:40 +0100
[Message part 1 (text/plain, inline)]
hi andreas,

On Thu, 2006-11-30 at 01:09 +0100, Andreas Ferber wrote:
> 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

uh, i did this and got no output with or without a pipe:

copelandia[~/symfony]23:43:05$ php5 test/functional/crudTest.php
copelandia[~/symfony]23:43:06$ php5 test/functional/crudTest.php |
tee /dev/null
copelandia[~/symfony]23:43:07$

got a better example? :)


	sean
[signature.asc (application/pgp-signature, inline)]

Tags added: moreinfo, unreproducible Request was from Raphael Geissert <atomo64@gmail.com> to control@bugs.debian.org. (Thu, 27 Sep 2007 03:27:01 GMT) (full text, mbox, link).


Reply sent to Ondřej Surý <ondrej@sury.org>:
You have taken responsibility. (Thu, 21 Oct 2010 11:21:07 GMT) (full text, mbox, link).


Notification sent to Andreas Ferber <aferber@marcant.net>:
Bug acknowledged by developer. (Thu, 21 Oct 2010 11:21:07 GMT) (full text, mbox, link).


Message #17 received at 400995-done@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@sury.org>
To: 509236-done@bugs.debian.org, 440634-done@bugs.debian.org, 499992-done@bugs.debian.org, 400995-done@bugs.debian.org, 458081-done@bugs.debian.org, 460198-done@bugs.debian.org, 491033-done@bugs.debian.org
Subject: Closing multiple etch bugs
Date: Thu, 21 Oct 2010 13:16:33 +0200
Version 5.2.6-5

Closing bugs found only in etch (or something in between etch and
lenny) versions which are no longer supported.

--
Ondřej Surý <ondrej@sury.org>




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 19 Nov 2010 07:37:03 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 00:20:34 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.