Error fetching headers
| From: | ahristov | Date: | Mon, 03 Jun 2002 10:50:37 +0000 |
| Subject: | Error fetching headers | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-46@lists.php.net to get a copy of this message | ||
Hi Brad,
I have problems while trying to access this service.
The fatal error is like this : Error fetching http headers.
If I comment the NULLs everything works ok.
I have another problem with the extension. It is not possible to transport
Cyrillic symbols from the server to the client. Probably this is not only
problematic when dealing with cyrillic but probably with other non-english
symbols.
Last but not least there is problem with the integer indexes of arrays.
In case all keys are integers but not sequent and greater than 0. After
transporting them the array is reordered starting from 0 to count()-1. I
think that the problem is in the server part. On the other hand if to the
same array is added a value with string key than the nothing changes. I've
experienced similar problems with array_slice() and some other functions
that are "naughty" enough to change the keys. In my case the keys are
timestamp from nowadays
Best regards,
Andrey Hristov
<?php
$server = new SoapServer('urn:Test');
$server->setClass('CTest');
$server->handle();
class CTest{
function BadThings(){
return array (
0 =>
array (
'task_name' => NULL,
'task_id' => 1,
),
1 =>
array (
2 =>
array (
0 =>
array (
'task_name' => NULL,
'task_id' => 2,
),
1 =>
array (
6 =>
array (
0 =>
array (
'task_name' => NULL,
'task_id' => 6,
),
),
),
),
),
);
}/* bad things */
}/* CTest */
?>