forked from php/php-src
-
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.
Fix bug #60611 (Segmentation fault with Cls::{expr}() syntax)
- Loading branch information
Showing
3 changed files
with
39 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--TEST-- | ||
Bug #60611 (Segmentation fault with Cls::{expr}() syntax) | ||
--FILE-- | ||
<?php | ||
class Cls { | ||
function __call($name, $arg) { | ||
} | ||
static function __callStatic($name, $arg) { | ||
} | ||
} | ||
|
||
Cls::{0}(); | ||
Cls::{1.0}(); | ||
Cls::{true}(); | ||
Cls::{false}(); | ||
Cls::{null}(); | ||
|
||
$cls = new Cls; | ||
$cls->{0}(); | ||
$cls->{1.0}(); | ||
$cls->{true}(); | ||
$cls->{false}(); | ||
$cls->{null}(); | ||
|
||
echo "done"; | ||
?> | ||
--EXPECT-- | ||
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