Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed memory leak introduced by 73458e8
- Loading branch information
1 parent
0ea0b59
commit 8c99b65
Showing
5 changed files
with
118 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--TEST-- | ||
ANDing strings | ||
--FILE-- | ||
<?php | ||
|
||
$s = "123"; | ||
$s1 = "test"; | ||
$s2 = "45345some"; | ||
|
||
$s &= 22; | ||
var_dump($s); | ||
|
||
$s1 &= 11; | ||
var_dump($s1); | ||
|
||
$s2 &= 33; | ||
var_dump($s2); | ||
|
||
echo "Done\n"; | ||
?> | ||
--EXPECTF-- | ||
int(18) | ||
int(0) | ||
int(33) | ||
Done |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--TEST-- | ||
Moduloing strings | ||
--FILE-- | ||
<?php | ||
|
||
$s = "123"; | ||
$s1 = "test"; | ||
$s2 = "45345some"; | ||
|
||
$s %= 22; | ||
var_dump($s); | ||
|
||
$s1 %= 11; | ||
var_dump($s1); | ||
|
||
$s2 %= 33; | ||
var_dump($s2); | ||
|
||
echo "Done\n"; | ||
?> | ||
--EXPECTF-- | ||
int(13) | ||
int(0) | ||
int(3) | ||
Done |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--TEST-- | ||
ORing strings | ||
--FILE-- | ||
<?php | ||
|
||
$s = "123"; | ||
$s1 = "test"; | ||
$s2 = "45345some"; | ||
|
||
$s |= 22; | ||
var_dump($s); | ||
|
||
$s1 |= 11; | ||
var_dump($s1); | ||
|
||
$s2 |= 33; | ||
var_dump($s2); | ||
|
||
echo "Done\n"; | ||
?> | ||
--EXPECTF-- | ||
int(127) | ||
int(11) | ||
int(45345) | ||
Done |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--TEST-- | ||
XORing strings | ||
--FILE-- | ||
<?php | ||
|
||
$s = "123"; | ||
$s1 = "test"; | ||
$s2 = "45345some"; | ||
|
||
$s ^= 22; | ||
var_dump($s); | ||
|
||
$s1 ^= 11; | ||
var_dump($s1); | ||
|
||
$s2 ^= 33; | ||
var_dump($s2); | ||
|
||
echo "Done\n"; | ||
?> | ||
--EXPECTF-- | ||
int(109) | ||
int(11) | ||
int(45312) | ||
Done |
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