Open aditaa opened 11 years ago
Try switching to the PHPStreamTransport instead of the CURLTransport.
There was a bug in CURL from around that time that kept several REST operations from working as expected. (The body data never gets read).
If it's not the CURL bug, then this is something new that I've not seen before, and I'll dig into it.
For reference on switching transports:
https://github.com/hpcloud/HPCloud-PHP/blob/master/src/HPCloud/Bootstrap.php#L205
thank you to solve i started running it on php 5.4 i just wanted to let you know as i couldn't find the problem anywhere else ( not documented ) .... and i thought goggle knew everything. ;) lol
I'm actually going to leave this one open. That way, if I can figure out exactly what is causing it, I might be able to work around it. Thanks again!
on one server:
php -v
PHP 5.3.3 (cli) (built: Feb 22 2013 02:51:11) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
php AuthTest.php {ID REMOVED} {KEY REMOVED} https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/ PHP Notice: Undefined offset: 1 in /var/www/html/modules/hpcloud/HPCloud-PHP/src/HPCloud/Transport/Response.php on line 328
PHP Notice: Undefined offset: 2 in /var/www/html/modules/hpcloud/HPCloud-PHP/src/HPCloud/Transport/Response.php on line 329 Authentication seemed to succeed, but no token was returned.
on new server:(diff php build)
$ php -v PHP 5.4.6-1ubuntu1.2 (cli) (built: Mar 11 2013 14:57:54) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
$ php AuthTest.php {ID REMOVED} {KEY REMOVED} https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/ You are logged in as {EMAIL REMOVED} with token HPAuth_{TOKEN REMOVED} (good until 2013-03-22T20:05:13.238Z). The following services are available on this account: Identity