new SoapClient() with connection_timeout = NULL breaks multi-dimensional arrays
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
EXAMPLE CODE:
<?php
$header = array();
$header[
print_r( $header );
#$timeout = 1;
$client = new SoapClient( null, array( 'location' => 'www.silversolu
$header = array();
$header[
print_r( $header );
?>
COMMAND:
php -n test.php
(NO CONFIG IS USED!!)
ACTUAL OUTPUT:
Array
(
[header_
(
)
)
Warning: Cannot use a scalar value as an array in /home/mab/test.php on line 11
Array
(
[header_
)
EXPECTED OUTPUT:
Array
(
[header_
(
)
)
Warning: Cannot use a scalar value as an array in /home/mab/test.php on line 11
Array
(
[header_
(
)
)
This is on
Linux johndoe 3.2.0-24-virtual #37-Ubuntu SMP Wed Apr 25 10:17:19 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux.
On a desktop machine with
Linux johndoe 3.2.0-24-generic #38-Ubuntu SMP Tue May 1 16:18:50 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
it works as expected.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: php5 5.3.10-1ubuntu3.1
ProcVersionSign
Uname: Linux 3.2.0-24-virtual x86_64
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
Date: Tue May 15 12:55:50 2012
PackageArchitec
SourcePackage: php5
UpgradeStatus: No upgrade log present (probably fresh install)
Thank you for taking the time to report this bug and helping to make Ubuntu better.
Are you saying that this bug depends on the kernel version installed?!
Please could you clarify which versions of the php5 you have on both the machine affected and the machine not affected? Do you think that this is a bug in php5 packaging or in php5 itself?