Edit report at https://bugs.php.net/bug.php?id=44383&edit=1
ID: 44383 Comment by: thomas dot lallement at 9online dot fr Reported by: kevin dot craft at gmail dot com Summary: PHP DateTime not converted to xsd:datetime Status: Feedback Type: Bug Package: SOAP related Operating System: * PHP Version: 5.*, 6 (2009-08-07 Assigned To: mj Block user comment: N Private report: N New Comment: For me, when you call $client->getCurrentDate(), the expected result would be to have a PHP DateTime object rather than a string. So the expected result should be: DateTime Object ( [date] => 2008-03-06 00:00:00 [timezone_type] => x [timezone] => xxxx/xxxxx ) What do you think about this? At least an option could be provide throught the SoapClient to permit this behavior. Previous Comments: ------------------------------------------------------------------------ [2012-12-24 07:29:52] m...@php.net David, I applied your patch to 5.6.0-dev but all the new tests are failing due to empty responses from SoapServer. Do you have some cycles to look into this? ------------------------------------------------------------------------ [2012-05-03 10:33:48] andyidol at gmail dot com Please fix this! I beg you ) ------------------------------------------------------------------------ [2012-01-25 19:44:20] frozenf...@php.net I've encountered this issue today, and it would be really wonderful to have this patch applied. ------------------------------------------------------------------------ [2010-10-18 17:43:04] aldekein at myevil dot info It still does not work after 2.5 years in PHP 5.3.1 on Windows. Maybe this patch should be applied to official PHP branch? ------------------------------------------------------------------------ [2009-08-07 15:23:57] david dot zuelke at bitextender dot com Updated patch and tests: http://pastie.org/575559 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=44383 -- Edit this bug report at https://bugs.php.net/bug.php?id=44383&edit=1