]> granicus.if.org Git - php/commitdiff
Disallow to changing the backtrace
authorMarcus Boerger <helly@php.net>
Sat, 6 Sep 2003 14:06:40 +0000 (14:06 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 6 Sep 2003 14:06:40 +0000 (14:06 +0000)
Zend/zend_default_classes.c
Zend/zend_exceptions.c

index 201dc88f09988320e0144082de221a98f5e1e126..87131ff1cd29315865c9209bb94ee3fe81538604 100644 (file)
@@ -388,7 +388,7 @@ static void zend_register_default_exception(TSRMLS_D)
        zend_declare_property_long(default_exception_ptr, "code", sizeof("code")-1, 0, ZEND_ACC_PROTECTED TSRMLS_CC);
        zend_declare_property_null(default_exception_ptr, "file", sizeof("file")-1, ZEND_ACC_PROTECTED TSRMLS_CC);
        zend_declare_property_null(default_exception_ptr, "line", sizeof("line")-1, ZEND_ACC_PROTECTED TSRMLS_CC);
-       zend_declare_property_null(default_exception_ptr, "trace", sizeof("trace")-1, ZEND_ACC_PROTECTED TSRMLS_CC);
+       zend_declare_property_null(default_exception_ptr, "trace", sizeof("trace")-1, ZEND_ACC_PRIVATE TSRMLS_CC);
 }
 
 ZEND_API zend_class_entry *zend_exception_get_default(void)
index 201dc88f09988320e0144082de221a98f5e1e126..87131ff1cd29315865c9209bb94ee3fe81538604 100644 (file)
@@ -388,7 +388,7 @@ static void zend_register_default_exception(TSRMLS_D)
        zend_declare_property_long(default_exception_ptr, "code", sizeof("code")-1, 0, ZEND_ACC_PROTECTED TSRMLS_CC);
        zend_declare_property_null(default_exception_ptr, "file", sizeof("file")-1, ZEND_ACC_PROTECTED TSRMLS_CC);
        zend_declare_property_null(default_exception_ptr, "line", sizeof("line")-1, ZEND_ACC_PROTECTED TSRMLS_CC);
-       zend_declare_property_null(default_exception_ptr, "trace", sizeof("trace")-1, ZEND_ACC_PROTECTED TSRMLS_CC);
+       zend_declare_property_null(default_exception_ptr, "trace", sizeof("trace")-1, ZEND_ACC_PRIVATE TSRMLS_CC);
 }
 
 ZEND_API zend_class_entry *zend_exception_get_default(void)