Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaced zendi_convert_to_long() with _zval_get_long_func()
- Loading branch information
Showing
1 changed file
with
96 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73458e8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit causes memory leaks in string bitwise shifts with
>>=
and<<=
, as caught by Travis and my machine when running theZend/tests/shift_001.phpt
andZend/tests/shift_002.phpt
tests on my machine.This is because you got rid of
op1_copy
, so we have no way of knowing whether the originalop1
needs to be destroyed whenop1
is also theresult
.73458e8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also causes memory leaks when using
%=
,&=
,|=
and^=
for the same reason, we just don't have tests for those.73458e8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed: 8c99b65
73458e8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.