ZF-3636: getting notices by using Zend_Service_Yahoo::webSearch
Description
I want to use Zend_Serive_Yahoo::webSearch() to search for websites but I get some notices (E_NOTICE) when I search for "flabben":
Notice: Trying to get property of non-object in C:\Server\php\includes\Zend\Service\Yahoo\WebResult.php on line 97 Notice: Trying to get property of non-object in C:\Server\php\includes\Zend\Service\Yahoo\WebResult.php on line 98 Notice: Trying to get property of non-object in C:\Server\php\includes\Zend\Service\Yahoo\WebResult.php on line 97 Notice: Trying to get property of non-object in C:\Server\php\includes\Zend\Service\Yahoo\WebResult.php on line 98
Here my code:
$yahoo = new Zend_Service_Yahoo($appId);
$results = $yahoo->webSearch('flabben');
I am getting valid results and I can use them but I think no api should cause notices.
(Mailinglist: http://nabble.com/getting-notices-by-using-Zend_Se…)
Comments
Posted by Jan Pieper (jpieper) on 2008-07-13T05:14:28.000+0000
Attached xml result so you can try to find out what is causing these notices.
If there is still something in my xml result that can be used by others to use my account, please let me know so I can deactivate actual application id and create a new one.
Posted by Jeroen Tietema (jtietema) on 2008-11-08T03:58:17.000+0000
I'm working on this one for the phpbughunt day.
Posted by Ralph Schindler (ralph) on 2008-11-08T04:58:29.000+0000
assiging
Posted by Jeroen Tietema (jtietema) on 2008-11-08T12:56:34.000+0000
svn style patch containing fix and unit test
Posted by Jeroen Tietema (jtietema) on 2008-11-11T12:10:04.000+0000
r12570 committed in the bughuntday branch as discussed with ralph
Posted by Wil Sinclair (wil) on 2008-11-13T14:10:25.000+0000
Changing issues in preparation for the 1.7.0 release.