Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

cvs: ZendEngine2 / zend_interfaces.c: msg#00029

php.cvs.zend

Subject: cvs: ZendEngine2 / zend_interfaces.c

helly Sun Apr 25 07:25:25 2004 EDT

Modified files:
/ZendEngine2 zend_interfaces.c
Log:
Capture potential problem by error message

http://cvs.php.net/diff.php/ZendEngine2/zend_interfaces.c?r1=1.18&r2=1.19&ty=u
Index: ZendEngine2/zend_interfaces.c
diff -u ZendEngine2/zend_interfaces.c:1.18 ZendEngine2/zend_interfaces.c:1.19
--- ZendEngine2/zend_interfaces.c:1.18 Sun Mar 28 09:32:32 2004
+++ ZendEngine2/zend_interfaces.c Sun Apr 25 07:25:25 2004
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/

-/* $Id: zend_interfaces.c,v 1.18 2004/03/28 14:32:32 stas Exp $ */
+/* $Id: zend_interfaces.c,v 1.19 2004/04/25 11:25:25 helly Exp $ */

#include "zend.h"
#include "zend_API.h"
@@ -186,6 +186,13 @@

zend_call_method_with_0_params(&object, iter->ce,
&iter->ce->iterator_funcs.zf_key, "key", &retval);

+ if (!retval) {
+ *str_key = "";
+ *str_key_len = 0;
+ *int_key = 0;
+ zend_error(E_WARNING, "Nothing returned from %s::key()",
iter->ce->name);
+ return HASH_KEY_IS_LONG;
+ }
switch (retval->type) {
default:
zend_error(E_WARNING, "Illegal type returned from
%s::key()", iter->ce->name);

--
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
drivers.mtd/200...    security.firewa...    java.openamf.cv...    rpm.yum/2003-08...    telephony.sipp....    file-systems.oc...    qnx.openqnx.dev...    voip.linphone.u...    hardware.sony/2...    network.simulat...    boot-loaders.gr...    ietf.usenet.for...    culture.languag...    emacs.latex.pre...    music.jamiroqua...    xfree86.neomagi...    user-groups.lin...    ltp/2006-08/msg...    kde.kst/2005-08...    programming.too...    os.freebsd.deve...    window-managers...    audio.cd-record...    gnu.fiasco.bugs...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation