From: Marcus Boerger Date: Mon, 26 Jan 2004 07:52:52 +0000 (+0000) Subject: We are in c not c++ X-Git-Tag: php-5.0.0b4RC1~308 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed650274eb5d27f910d32b1695f8aa69f9c4bad1;p=php We are in c not c++ --- diff --git a/ext/spl/spl_functions.c b/ext/spl/spl_functions.c index feccacac53..bc867b1230 100755 --- a/ext/spl/spl_functions.c +++ b/ext/spl/spl_functions.c @@ -133,10 +133,11 @@ void spl_add_interfaces(zval *list, zend_class_entry * pce, int allow, int ce_fl /* {{{ spl_add_classes */ int spl_add_classes(zend_class_entry ** ppce, zval *list, int sub, int allow, int ce_flags TSRMLS_DC) { + zend_class_entry *pce = *ppce; + if (!ppce) { return 0; } - zend_class_entry *pce = *ppce; spl_add_class_name(list, pce, allow, ce_flags TSRMLS_CC); if (sub) { spl_add_interfaces(list, pce, allow, ce_flags TSRMLS_CC);