Issues

ZF-3636: getting notices by using Zend_Service_Yahoo::webSearch

Issue Type: Bug Created: 2008-07-13T05:13:46.000+0000 Last Updated: 2008-11-13T14:10:25.000+0000 Status: Resolved Fix version(s): - 1.7.0 (17/Nov/08)

Reporter: Jan Pieper (jpieper) Assignee: Jeroen Tietema (jtietema) Tags: - Zend_Service_Yahoo

Related issues: Attachments: - result.xml

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:

<pre class="highlight">$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.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts