php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22038 array() doesn't work right
Submitted: 2003-02-03 17:53 UTC Modified: 2003-02-13 12:35 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 2 (50.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: k.schroeder@php.net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5CVS-2003-02-03 (dev) OS: Windows 2000 Server
Private report: No CVE-ID: None
 [2003-02-03 17:53 UTC] k.schroeder@php.net
/run-tests.php doesn't work with latest php5-win32 snap on W2kserver. Every second array value get an array key.

declaration (line 141):
$ini_overwrites = array(
		'output_handler=',
		'zlib.output_compression=Off',
		'open_basedir=',
		'safe_mode=0',
		'disable_functions=',
		'output_buffering=Off',
		'error_reporting=2047',
		'display_errors=1',
		'log_errors=0',
		'html_errors=0',
		'track_errors=1',
		'report_memleaks=1',
		'report_zend_debug=0',
		'docref_root=/phpmanual/',
		'docref_ext=.html',
		'error_prepend_string=',
		'error_append_string=',
		'auto_prepend_file=',
		'auto_append_file=',
		'magic_quotes_runtime=0',
	);

var_dump($settings); (added on line 794):
array(11) {
  [""]=>
  string(15) "output_handler="
  ["zlib.output_compression=Off"]=>
  string(13) "open_basedir="
  ["safe_mode=0"]=>
  string(18) "disable_functions="
  ["output_buffering=Off"]=>
  string(20) "error_reporting=2047"
  ["display_errors=1"]=>
  string(12) "log_errors=0"
  ["html_errors=0"]=>
  string(14) "track_errors=1"
  ["report_memleaks=1"]=>
  string(19) "report_zend_debug=0"
  ["docref_root=/phpmanual/"]=>
  string(16) "docref_ext=.html"
  ["error_prepend_string="]=>
  string(20) "error_append_string="
  ["auto_prepend_file="]=>
  string(17) "auto_append_file="
  ["magic_quotes_runtime=0"]=>
  &array(1) {
    ["magic_quotes_runtime=0"]=>
    &array(1) {
      ["magic_quotes_runtime=0"]=>
      *RECURSION*
    }
  }
}

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-03 18:04 UTC] k.schroeder@php.net
Looks like an windows only problem. It works on Linux with latest source snap. Please verify on other operating systems.
 [2003-02-04 00:31 UTC] moriyoshi@php.net
Did you try one of the branch version (ZE1)?
And I suppose we have to look into the problem more intentionally before marking this as critical.

 [2003-02-04 00:33 UTC] moriyoshi@php.net
s/intentionally/intensively/
 [2003-02-04 01:42 UTC] k.schroeder@php.net
I've tested with latestet php4-win32 snap and latestest source snaps of PHP4 and PHP5 on Linux. All these tests works, it's only a problem with PHP5 + Win. Critical in my eyes because /run-tests.php doesn't work and array's are important.
 [2003-02-13 12:35 UTC] k.schroeder@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

It works now with latestest snap.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 18 22:01:26 2024 UTC