-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Yaf_Dispatcher's get_properties, and get_gc for fix cycle refer…
…ence
- Loading branch information
Showing
9 changed files
with
321 additions
and
121 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
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,29 @@ | ||
--TEST-- | ||
Check for various cycle references | ||
--SKIPIF-- | ||
<?php if (!extension_loaded("yaf")) print "skip"; ?> | ||
--INI-- | ||
yaf.use_spl_autoload=0 | ||
yaf.lowcase_path=0 | ||
yaf.use_namespace=0 | ||
--FILE-- | ||
<?php | ||
$foo = new Stdclass(); | ||
$foo->request = new Yaf_Request_Simple(); | ||
$foo->request->setParam("foo", $foo); | ||
unset($foo); | ||
|
||
$foo = new Stdclass(); | ||
$foo->config = new Yaf_Config_Simple(array(), 0); | ||
$foo->config->foo = $foo; | ||
unset($foo); | ||
|
||
$foo = new Stdclass(); | ||
$foo->request = new Yaf_Request_Simple(); | ||
$app = new Yaf_Application(["yaf" => ["directory" => __DIR__]]); | ||
$app->getDispatcher()->setRequest($foo->request); | ||
unset($foo); | ||
?> | ||
okey | ||
--EXPECT-- | ||
okey |
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
Oops, something went wrong.