Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Renaming] Handle crash on RenameFunctionRector with die() and $_SESS…
…ION part 2 (#5647) * [Renaming] Handle crash on RenameFunctionRector with die() and $_SESSION part 2 * fix
- Loading branch information
1 parent
00876da
commit 3b44873
Showing
2 changed files
with
57 additions
and
17 deletions.
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
...tests/Renaming/Rector/FuncCall/RenameFunctionRector/Fixture/with_die_and_session2.php.inc
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,55 @@ | ||
<?php | ||
|
||
if ($_SESSION['order_in_progress'] != 1) { | ||
|
||
$isNewUIEnabled = true; | ||
|
||
if ($isNewUIEnabled) { | ||
header('Location: /storefront/checkout/success'); | ||
return; | ||
} | ||
} else { | ||
die('Sorry, '); | ||
} | ||
|
||
function insertorder() { | ||
if (!empty($orderTaxDetails)) { | ||
|
||
abc($orderTaxQuery); | ||
if (abc2()) { | ||
return false; | ||
} | ||
} | ||
} | ||
|
||
echo $_SESSION['facebook_app_id']; | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
if ($_SESSION['order_in_progress'] != 1) { | ||
|
||
$isNewUIEnabled = true; | ||
|
||
if ($isNewUIEnabled) { | ||
header('Location: /storefront/checkout/success'); | ||
return; | ||
} | ||
} else { | ||
die('Sorry, '); | ||
} | ||
|
||
function insertorder() { | ||
if (!empty($orderTaxDetails)) { | ||
|
||
abc($orderTaxQuery); | ||
if (abc()) { | ||
return false; | ||
} | ||
} | ||
} | ||
|
||
echo $_SESSION['facebook_app_id']; | ||
|
||
?> |
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