This commit is contained in:
parent
46250f0cd8
commit
95c9fd0f1f
10
engine/vm.c
10
engine/vm.c
|
@ -818,17 +818,17 @@ static sxi32 VmEvalChunk(ph7_vm *pVm, ph7_context *pCtx, SyString *pChunk, int i
|
||||||
"protected int $code = 0;"\
|
"protected int $code = 0;"\
|
||||||
"protected string $file;"\
|
"protected string $file;"\
|
||||||
"protected int $line;"\
|
"protected int $line;"\
|
||||||
"protected mixed $trace;"\
|
"protected mixed[] $trace;"\
|
||||||
"protected object $previous;"\
|
"protected object $previous;"\
|
||||||
"public void __construct(string $message = '', int $code = 0, Exception $previous = null) {"\
|
"public void __construct(string $message = '', int $code = 0, Exception $previous = null) {"\
|
||||||
" if(isset($message)) {"\
|
" if($message) {"\
|
||||||
" $this->message = $message;"\
|
" $this->message = $message;"\
|
||||||
" }"\
|
" }"\
|
||||||
" $this->code = $code;"\
|
" $this->code = $code;"\
|
||||||
" $this->file = __FILE__;"\
|
" $this->file = __FILE__;"\
|
||||||
" $this->line = __LINE__;"\
|
" $this->line = __LINE__;"\
|
||||||
" $this->trace = debug_backtrace();"\
|
" $this->trace = debug_backtrace();"\
|
||||||
" if(isset($previous)) {"\
|
" if($previous) {"\
|
||||||
" $this->previous = $previous;"\
|
" $this->previous = $previous;"\
|
||||||
" }"\
|
" }"\
|
||||||
"}"\
|
"}"\
|
||||||
|
@ -861,7 +861,7 @@ static sxi32 VmEvalChunk(ph7_vm *pVm, ph7_context *pCtx, SyString *pChunk, int i
|
||||||
"protected int $severity;"\
|
"protected int $severity;"\
|
||||||
"public void __construct(string $message = '',"\
|
"public void __construct(string $message = '',"\
|
||||||
"int $code = 0, int $severity = 1, string $filename = __FILE__ , int $lineno = __LINE__ , Exception $previous = null) {"\
|
"int $code = 0, int $severity = 1, string $filename = __FILE__ , int $lineno = __LINE__ , Exception $previous = null) {"\
|
||||||
" if(isset($message)) {"\
|
" if($message) {"\
|
||||||
" $this->message = $message;"\
|
" $this->message = $message;"\
|
||||||
" }"\
|
" }"\
|
||||||
" $this->severity = $severity;"\
|
" $this->severity = $severity;"\
|
||||||
|
@ -869,7 +869,7 @@ static sxi32 VmEvalChunk(ph7_vm *pVm, ph7_context *pCtx, SyString *pChunk, int i
|
||||||
" $this->file = $filename;"\
|
" $this->file = $filename;"\
|
||||||
" $this->line = $lineno;"\
|
" $this->line = $lineno;"\
|
||||||
" $this->trace = debug_backtrace();"\
|
" $this->trace = debug_backtrace();"\
|
||||||
" if(isset($previous)) {"\
|
" if($previous) {"\
|
||||||
" $this->previous = $previous;"\
|
" $this->previous = $previous;"\
|
||||||
" }"\
|
" }"\
|
||||||
"}"\
|
"}"\
|
||||||
|
|
Loading…
Reference in New Issue
Block a user