mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
- Simplify
This commit is contained in:
parent
adaf6daa3c
commit
51e9bd075f
@ -3429,8 +3429,7 @@ void zend_do_halt_compiler_register(TSRMLS_D)
|
|||||||
int len, clen;
|
int len, clen;
|
||||||
cfilename = zend_get_compiled_filename(TSRMLS_C);
|
cfilename = zend_get_compiled_filename(TSRMLS_C);
|
||||||
clen = strlen(cfilename);
|
clen = strlen(cfilename);
|
||||||
zend_mangle_property_name(&name, &len, haltoff,
|
zend_mangle_property_name(&name, &len, haltoff, sizeof(haltoff) - 1, cfilename, clen, 0);
|
||||||
sizeof("__COMPILER_HALT_OFFSET__") - 1, cfilename, clen, 0);
|
|
||||||
zend_register_long_constant(name, len+1, zend_get_scanned_file_offset(TSRMLS_C), CONST_CS, 0 TSRMLS_CC);
|
zend_register_long_constant(name, len+1, zend_get_scanned_file_offset(TSRMLS_C), CONST_CS, 0 TSRMLS_CC);
|
||||||
pefree(name, 0);
|
pefree(name, 0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user