-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
927d66f
commit 6d6d328
Showing
4 changed files
with
58 additions
and
20 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
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
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 |
---|---|---|
@@ -1,16 +1,37 @@ | ||
<?php | ||
|
||
class LoneClass { | ||
public function lone_call() { | ||
return "foo"; | ||
} | ||
} | ||
|
||
class SecondClass { | ||
public function second_call() { | ||
return "bar"; | ||
} | ||
|
||
} | ||
|
||
class FirstClass { | ||
public function first_call() { | ||
$second_class_obj = new SecondClass(); | ||
|
||
return $second_class_obj; | ||
} | ||
} | ||
|
||
|
||
|
||
|
||
/* Main purpose for this test - capture the method-call condition */ | ||
|
||
$object = 'O:6:"Logger":2:{s:7:"logtype";s:9:"TEMPORARY";s:3:"log";O:8:"TempFile":1:{s:8:"filename";s:9:"FILE_PATH";}}'; | ||
$data = unserialize($object); // POI bug | ||
// | ||
// this is currently ignored by our analysis | ||
// | ||
$data->hey(); | ||
// | ||
// this is currently caught by our analysis | ||
// | ||
$data->ola()->to_you_to(); | ||
$data->lone_call(); | ||
|
||
|
||
$data2 = unserialize($object); // POI bug | ||
$data2->first_call()->second_call(); | ||
|
||
?> |
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