]> granicus.if.org Git - php/commitdiff
- Fix vim blocks and add missing comment
authorMarcus Boerger <helly@php.net>
Sat, 3 Jan 2009 12:24:30 +0000 (12:24 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 3 Jan 2009 12:24:30 +0000 (12:24 +0000)
Zend/zend_closures.c

index 7b4062a71a0d4a5e9d4402ab5ab3113f227c499c..b77ae9657acafd3e6b0586bfcf050df6506dac96 100644 (file)
@@ -40,6 +40,7 @@ typedef struct _zend_closure {
        zval          *this_ptr;
 } zend_closure;
 
+/* non-static since it needs to be referenced */
 ZEND_API zend_class_entry *zend_ce_closure;
 static zend_object_handlers closure_handlers;
 
@@ -107,7 +108,7 @@ ZEND_API zend_function *zend_get_closure_invoke_method(zval *obj TSRMLS_DC) /* {
 }
 /* }}} */
 
-ZEND_API const zend_function *zend_get_closure_method_def(zval *obj TSRMLS_DC)
+ZEND_API const zend_function *zend_get_closure_method_def(zval *obj TSRMLS_DC) /* {{{ */
 {
        zend_closure *closure = (zend_closure *)zend_object_store_get_object(obj TSRMLS_CC);    
        return &closure->func;