@@ -400,71 +400,83 @@ ZEND_METHOD(error_exception, __construct)
400
400
Get the file in which the exception occurred */
401
401
ZEND_METHOD (exception , getFile )
402
402
{
403
- zval rv ;
403
+ zval * prop , rv ;
404
404
405
405
DEFAULT_0_PARAMS ;
406
406
407
- ZVAL_COPY (return_value , GET_PROPERTY (getThis (), ZEND_STR_FILE ));
407
+ prop = GET_PROPERTY (getThis (), ZEND_STR_FILE );
408
+ ZVAL_DEREF (prop );
409
+ ZVAL_COPY (return_value , prop );
408
410
}
409
411
/* }}} */
410
412
411
413
/* {{{ proto int Exception|Error::getLine()
412
414
Get the line in which the exception occurred */
413
415
ZEND_METHOD (exception , getLine )
414
416
{
415
- zval rv ;
417
+ zval * prop , rv ;
416
418
417
419
DEFAULT_0_PARAMS ;
418
420
419
- ZVAL_COPY (return_value , GET_PROPERTY (getThis (), ZEND_STR_LINE ));
421
+ prop = GET_PROPERTY (getThis (), ZEND_STR_LINE );
422
+ ZVAL_DEREF (prop );
423
+ ZVAL_COPY (return_value , prop );
420
424
}
421
425
/* }}} */
422
426
423
427
/* {{{ proto string Exception|Error::getMessage()
424
428
Get the exception message */
425
429
ZEND_METHOD (exception , getMessage )
426
430
{
427
- zval rv ;
431
+ zval * prop , rv ;
428
432
429
433
DEFAULT_0_PARAMS ;
430
434
431
- ZVAL_COPY (return_value , GET_PROPERTY (getThis (), ZEND_STR_MESSAGE ));
435
+ prop = GET_PROPERTY (getThis (), ZEND_STR_MESSAGE );
436
+ ZVAL_DEREF (prop );
437
+ ZVAL_COPY (return_value , prop );
432
438
}
433
439
/* }}} */
434
440
435
441
/* {{{ proto int Exception|Error::getCode()
436
442
Get the exception code */
437
443
ZEND_METHOD (exception , getCode )
438
444
{
439
- zval rv ;
445
+ zval * prop , rv ;
440
446
441
447
DEFAULT_0_PARAMS ;
442
448
443
- ZVAL_COPY (return_value , GET_PROPERTY (getThis (), ZEND_STR_CODE ));
449
+ prop = GET_PROPERTY (getThis (), ZEND_STR_CODE );
450
+ ZVAL_DEREF (prop );
451
+ ZVAL_COPY (return_value , prop );
444
452
}
445
453
/* }}} */
446
454
447
455
/* {{{ proto array Exception|Error::getTrace()
448
456
Get the stack trace for the location in which the exception occurred */
449
457
ZEND_METHOD (exception , getTrace )
450
458
{
451
- zval rv ;
459
+ zval * prop , rv ;
452
460
453
461
DEFAULT_0_PARAMS ;
454
462
455
- ZVAL_COPY (return_value , GET_PROPERTY (getThis (), ZEND_STR_TRACE ));
463
+ prop = GET_PROPERTY (getThis (), ZEND_STR_TRACE );
464
+ ZVAL_DEREF (prop );
465
+ ZVAL_COPY (return_value , prop );
456
466
}
457
467
/* }}} */
458
468
459
469
/* {{{ proto int ErrorException::getSeverity()
460
470
Get the exception severity */
461
471
ZEND_METHOD (error_exception , getSeverity )
462
472
{
463
- zval rv ;
473
+ zval * prop , rv ;
464
474
465
475
DEFAULT_0_PARAMS ;
466
476
467
- ZVAL_COPY (return_value , GET_PROPERTY (getThis (), ZEND_STR_SEVERITY ));
477
+ prop = GET_PROPERTY (getThis (), ZEND_STR_SEVERITY );
478
+ ZVAL_DEREF (prop );
479
+ ZVAL_COPY (return_value , prop );
468
480
}
469
481
/* }}} */
470
482
0 commit comments