diff options
| author | Dmitry Stogov <dmitry@zend.com> | 2015-08-19 14:40:56 +0300 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@zend.com> | 2015-08-19 14:40:56 +0300 |
| commit | 71af54e5f6656af070e4dccd1470bb1376c89568 (patch) | |
| tree | fccae330f52f8e1848d1f3921b03b8e8b7e0ed70 /Zend/zend_closures.c | |
| parent | 066f6f6ad8bf9ff3b548d768c811931bab320cd5 (diff) | |
| download | php-git-71af54e5f6656af070e4dccd1470bb1376c89568.tar.gz | |
Mark error and exception functions as "cold" (Matt's idea)
Diffstat (limited to 'Zend/zend_closures.c')
| -rw-r--r-- | Zend/zend_closures.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_closures.c b/Zend/zend_closures.c index 6f16935cc7..637e2dd5fc 100644 --- a/Zend/zend_closures.c +++ b/Zend/zend_closures.c @@ -205,7 +205,7 @@ ZEND_METHOD(Closure, bind) } /* }}} */ -static zend_function *zend_closure_get_constructor(zend_object *object) /* {{{ */ +static ZEND_COLD zend_function *zend_closure_get_constructor(zend_object *object) /* {{{ */ { zend_throw_error(NULL, "Instantiation of 'Closure' is not allowed"); return NULL; @@ -448,7 +448,7 @@ static HashTable *zend_closure_get_gc(zval *obj, zval **table, int *n) /* {{{ */ /* {{{ proto Closure::__construct() Private constructor preventing instantiation */ -ZEND_METHOD(Closure, __construct) +ZEND_COLD ZEND_METHOD(Closure, __construct) { zend_throw_error(NULL, "Instantiation of 'Closure' is not allowed"); } |
