[Bug 257892] Re: PHP (Cli) generates invalid output when it exceeds 4kB

Pawel Smolinski pawel.smolinski at planetsoft.pl
Thu Aug 14 13:56:32 BST 2008


** Attachment added: "php.ini for php-cli"
   http://launchpadlibrarian.net/16773758/php.ini

** Description changed:

  Binary package hint: php5-cli
  
  I've written small script for generate sql query:
  --------
  echo "INSERT INTO prices (category_from_id, category_to_id, fee) VALUES ";
  
  for($i = 1; $i <= 18; $i++){
  	for($j = 1; $j <= 18; $j++){
  		$fee = rand(1, 100);
  		echo "($i, $j, $fee), ";
  	}
  }
  echo "\n";
  --------
- and when output exceeds 4kB, it generates invalid error:
+ and when output exceeds 4kB, it generates invalid output (lost few characters):
  --------
  (18, 5, 83), (18, 6, 71), (1(18, 8, 48), 
  --------
  (1(18... instead (18, 7, 12), (18...
  
  I've output buffering turned off (as can see in attached php.ini file)
  
  My system (Kubunty) version details:
  
  $ lsb_release -rd
  Description:    Ubuntu 8.04.1
  Release:        8.04
  
  $ php --version
  PHP 5.2.4-2ubuntu5.3 with Suhosin-Patch 0.9.6.2 (cli) (built: Jul 23 2008 06:44:49)
  Copyright (c) 1997-2007 The PHP Group
  Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

** Description changed:

  Binary package hint: php5-cli
  
  I've written small script for generate sql query:
  --------
  echo "INSERT INTO prices (category_from_id, category_to_id, fee) VALUES ";
  
  for($i = 1; $i <= 18; $i++){
  	for($j = 1; $j <= 18; $j++){
  		$fee = rand(1, 100);
  		echo "($i, $j, $fee), ";
  	}
  }
  echo "\n";
  --------
  and when output exceeds 4kB, it generates invalid output (lost few characters):
  --------
  (18, 5, 83), (18, 6, 71), (1(18, 8, 48), 
  --------
  (1(18... instead (18, 7, 12), (18...
  
- I've output buffering turned off (as can see in attached php.ini file)
+ I've output buffering turned off (as can see in attached php.ini file).
+ On native php 5.2.6 everything works OK (checked on another machine)
  
- My system (Kubunty) version details:
+ My system (Kubunt) version details:
  
  $ lsb_release -rd
  Description:    Ubuntu 8.04.1
  Release:        8.04
  
  $ php --version
  PHP 5.2.4-2ubuntu5.3 with Suhosin-Patch 0.9.6.2 (cli) (built: Jul 23 2008 06:44:49)
  Copyright (c) 1997-2007 The PHP Group
  Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

-- 
PHP (Cli) generates invalid output when it exceeds 4kB
https://bugs.launchpad.net/bugs/257892
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.



More information about the Ubuntu-server-bugs mailing list