]> granicus.if.org Git - php/commitdiff
We are in c not c++
authorMarcus Boerger <helly@php.net>
Mon, 26 Jan 2004 07:52:52 +0000 (07:52 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 26 Jan 2004 07:52:52 +0000 (07:52 +0000)
ext/spl/spl_functions.c

index feccacac5303190e3772bf6641717c793bbd8697..bc867b1230d81dc994506a4728d68fbb7e669bb0 100755 (executable)
@@ -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);