]> granicus.if.org Git - php/commitdiff
Fixed uninitialized data
authorDmitry Stogov <dmitry@php.net>
Fri, 25 Jul 2008 08:50:55 +0000 (08:50 +0000)
committerDmitry Stogov <dmitry@php.net>
Fri, 25 Jul 2008 08:50:55 +0000 (08:50 +0000)
ext/reflection/php_reflection.c

index aaf69d738050893f738249e70c6917a0817b2b42..c8c4b084e04c224a7da764fd2d37132dbc311fb2 100644 (file)
@@ -1235,7 +1235,7 @@ static void _reflection_export(INTERNAL_FUNCTION_PARAMETERS, zend_class_entry *c
        fcc.initialized = 1;
        fcc.function_handler = ce_ptr->constructor;
        fcc.calling_scope = ce_ptr;
-       fcc.called_scope = reflection_ptr;
+       fcc.called_scope = Z_OBJCE_P(reflector_ptr);
        fcc.object_pp = &reflector_ptr;
 
        result = zend_call_function(&fci, &fcc TSRMLS_CC);