summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli.c
diff options
context:
space:
mode:
authorAaron Piotrowski <aaron@trowski.com>2015-07-03 09:44:48 -0500
committerAaron Piotrowski <aaron@trowski.com>2015-07-03 09:44:48 -0500
commita812a74c2e60a0ba080057067a7634e4da3f2b9b (patch)
tree7cd6fd55b3fdfe61b22c9370fe23427c6b344243 /sapi/cli/php_cli.c
parentf9e9d3a43792846a483092bce409bc9927d24848 (diff)
downloadphp-git-a812a74c2e60a0ba080057067a7634e4da3f2b9b.tar.gz
Change zend_exception_get_default() to zend_exception_ce
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r--sapi/cli/php_cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c
index e48481dd0c..c1bfc74d99 100644
--- a/sapi/cli/php_cli.c
+++ b/sapi/cli/php_cli.c
@@ -1090,7 +1090,7 @@ static int do_cli(int argc, char **argv) /* {{{ */
zval tmp, *msg, rv;
ZVAL_OBJ(&tmp, EG(exception));
- msg = zend_read_property(zend_exception_get_default(), &tmp, "message", sizeof("message")-1, 0, &rv);
+ msg = zend_read_property(zend_exception_ce, &tmp, "message", sizeof("message")-1, 0, &rv);
zend_printf("Exception: %s\n", Z_STRVAL_P(msg));
zval_ptr_dtor(&tmp);
EG(exception) = NULL;