History log of /PHP-7.3/ext/opcache/Optimizer/zend_optimizer.c (Results 1 – 25 of 199)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# a4f806aa 17-Sep-2020 Nikita Popov

Fixed bug #80083

Add db2_execute() to the list of functions accessing the local
scope. Ideally the API wouldn't do that, but it seems most
pragmatic to address this on the opcache si

Fixed bug #80083

Add db2_execute() to the list of functions accessing the local
scope. Ideally the API wouldn't do that, but it seems most
pragmatic to address this on the opcache side at this point.

show more ...


# 7c1316ec 04-May-2020 Nikita Popov

Fixed bug #79535

We did not allocate a cache slot for FETCH_CLASS. This is already
fixed on newer PHP versions.


Revision tags: php-7.3.13RC1, php-7.2.26RC1, php-7.4.0, php-7.2.25, php-7.3.12, php-7.4.0RC6, php-7.3.12RC1, php-7.2.25RC1, php-7.4.0RC5, php-7.1.33, php-7.2.24, php-7.3.11, php-7.4.0RC4, php-7.3.11RC1, php-7.2.24RC1, php-7.4.0RC3, php-7.2.23, php-7.3.10, php-7.4.0RC2, php-7.2.23RC1, php-7.3.10RC1, php-7.4.0RC1, php-7.1.32, php-7.2.22, php-7.3.9, php-7.4.0beta4, php-7.2.22RC1, php-7.3.9RC1, php-7.4.0beta2, php-7.1.31, php-7.2.21, php-7.3.8, php-7.4.0beta1, php-7.2.21RC1, php-7.3.8RC1, php-7.4.0alpha3, php-7.3.7, php-7.2.20, php-7.4.0alpha2, php-7.3.7RC3, php-7.3.7RC2, php-7.2.20RC2, php-7.4.0alpha1, php-7.3.7RC1, php-7.2.20RC1, php-7.2.19, php-7.3.6, php-7.1.30, php-7.2.19RC1, php-7.3.6RC1, php-7.1.29, php-7.2.18, php-7.3.5, php-7.2.18RC1, php-7.3.5RC1, php-7.2.17, php-7.3.4, php-7.1.28, php-7.3.4RC1, php-7.2.17RC1, php-7.1.27, php-7.3.3, php-7.2.16, php-7.3.3RC1, php-7.2.16RC1, php-7.2.15, php-7.3.2, php-7.2.15RC1, php-7.3.2RC1
# 16176ad0 10-Jan-2019 Xinchen Hui

Incase of invalid read


Revision tags: php-5.6.40
# bf4dab01 09-Jan-2019 Nikita Popov

Make operator swapping depend on IGNORE_OVERLOADING flag

Add MUL back to the list and instead make the entire optimization
depend on IGNORE_OVERLOADING, which is there exactly so we can

Make operator swapping depend on IGNORE_OVERLOADING flag

Add MUL back to the list and instead make the entire optimization
depend on IGNORE_OVERLOADING, which is there exactly so we can make
these kinds of assumptions.

show more ...


Revision tags: php-7.1.26, php-7.3.1
# cd49db9d 08-Jan-2019 Xinchen Hui

Fixed bug #77266 (Assertion failed in dce_live_ranges)


Revision tags: php-7.2.14, php-7.2.14RC1, php-7.3.1RC1
# 93aabf15 10-Dec-2018 Nikita Popov

Fixed bug #77275

Instead of juggling with this problem during literal compaction,
make sure that we always initialize Z_EXTRA for literals, which
seems like the more robust solution.


Revision tags: php-5.6.39, php-7.1.25, php-7.2.13, php-7.0.33, php-7.3.0, php-7.1.25RC1, php-7.2.13RC1, php-7.3.0RC6, php-7.1.24, php-7.2.12, php-7.3.0RC5
# 9afce019 01-Nov-2018 Zeev Suraski

Future-proof email addresses


# b9431ef4 25-Oct-2018 Nikita Popov

Don't optimize function if inference failed

This was respected only for the single-function optimizations, not
in func-info mode.


Revision tags: php-7.1.24RC1, php-7.2.12RC1, php-7.3.0RC4, php-7.1.23, php-7.2.11, php-7.3.0RC3, php-7.1.23RC1, php-7.2.11RC1, php-7.3.0RC2, php-5.6.38, php-7.1.22, php-7.3.0RC1, php-7.2.10, php-7.0.32, php-7.1.22RC1, php-7.3.0beta3, php-7.2.10RC1, php-7.1.21, php-7.2.9, php-7.3.0beta2, php-7.1.21RC1, php-7.3.0beta1, php-7.2.9RC1
# f950128c 25-Jul-2018 Dmitry Stogov

Encode parent class name as IS_CONST operand in DECLARE_INHERITED_CLASS and DECLARE_ANON_INHERITED_CLASS opcodes (eliminate FETCH_CLAS
S opcode).


Revision tags: php-5.6.37, php-7.1.20, php-7.3.0alpha4, php-7.0.31, php-7.2.8, php-7.1.20RC1, php-7.2.8RC1, php-7.3.0alpha3
# 004a0568 03-Jul-2018 Dmitry Stogov

Eliminated REFCOUNTED checks on persistent constant operands in SEND_VAL[_EX] and QM_ASSIGN.


# 28b03f96 02-Jul-2018 Dmitry Stogov

Another fix for bug #63217


# 57af94c8 02-Jul-2018 Dmitry Stogov

Partial revert of 30156d588c07e26d4e752ddb62344e96854d4773


# 30156d58 28-Jun-2018 Rudi Theunissen

Fixed bug #63217

Don't automatically convert literal string keys to integers on
array access, as we may be dealing with an ArrayAccess object,
rather than a plain array.


Revision tags: php-7.3.0alpha2, php-7.1.19, php-7.2.7
# 60323906 09-Jun-2018 Nikita Popov

Optimizer: Don't propagate constants into MAKE_REF

This occurs in Zend/tests/assign_ref_error_var_handling.phpt,
added in 95a07099359a91b81964565703a0991a55fb6889.


Revision tags: php-7.1.19RC1, php-7.3.0alpha1, php-7.2.7RC1
# 9e0f131d 31-May-2018 Dmitry Stogov

Fixed ISSET/ISEMPTY bit meaning to simplify run-time checks


Revision tags: php-7.1.18, php-7.2.6, php-7.2.6RC1, php-7.1.18RC1, php-5.6.36, php-7.2.5, php-7.1.17, php-7.0.30, php-7.1.17RC1, php-7.2.5RC1, php-5.6.35, php-7.0.29, php-7.2.4, php-7.1.16, php-7.1.16RC1, php-7.2.4RC1, php-7.1.15, php-5.6.34, php-7.2.3, php-7.0.28
# b0af9ac7 16-Feb-2018 Nikita Popov

Avoid live range references in opcodes

Don't store the live range of the freed variable for FREE_ON_RETURN
frees, instead look it up at runtime. As this is an extremely
unlikely code

Avoid live range references in opcodes

Don't store the live range of the freed variable for FREE_ON_RETURN
frees, instead look it up at runtime. As this is an extremely
unlikely codepath (in particular, it requires a loop variable with
a throwing destructor), saving the runtime lookup of the live range
is not worth the extra complexity this adds everywhere else.

show more ...


Revision tags: php-7.2.3RC1, php-7.1.15RC1
# ca035f26 05-Feb-2018 Dmitry Stogov

Moved "zval.u2.cache_slot" into free room of "zend_op"


# 3a794d39 05-Feb-2018 Dmitry Stogov

Avoid repeatable ARG_SHOULD_BE_SENT_BY_REF() checks in FETCH_*FUNC_ARG and following SEND_VAR_EX. Perform the check once in a new CHECK_FUNC_ARG opcode and reuse in the following FETCH_*FUNC_ARG and

Avoid repeatable ARG_SHOULD_BE_SENT_BY_REF() checks in FETCH_*FUNC_ARG and following SEND_VAR_EX. Perform the check once in a new CHECK_FUNC_ARG opcode and reuse in the following FETCH_*FUNC_ARG and SEND_FUNC_ARG (SEND_VAR_EX replacement).

show more ...


# ba298725 31-Jan-2018 Dmitry Stogov

Changed CATCH instruction format (extended_value moved into op2, op2 into result, result into extended_value)


# 9c7fb529 31-Jan-2018 Dmitry Stogov

Changed FETCH_CONSTANT instruction format (extended_value moved into op1)


Revision tags: php-7.1.14, php-7.2.2
# bf7176c7 18-Jan-2018 Dmitry Stogov

Use reference-counting instead of duplication and separation, if really necessary.


# c5c9a694 17-Jan-2018 Dmitry Stogov

Use ZVAL_DUP() instead of zval_copy_ctor()


Revision tags: php-7.1.14RC1, php-7.2.2RC1
# c9034c3b 11-Jan-2018 Dmitry Stogov

Get rid of zend_op_array.early_binding


# 729a6688 05-Jan-2018 Xinchen Hui

Optimized FETCH_CLASS before INSTANCEOF out if possible


# 76d0e3d5 03-Jan-2018 Xinchen Hui

Enable replacing const to INSTANCEOF


12345678