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