Adding debian version 2.4.63-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
This commit is contained in:
parent
7263481e48
commit
f56986e2d9
1490 changed files with 80785 additions and 0 deletions
30
debian/perl-framework/t/htdocs/php/construct.php
vendored
Normal file
30
debian/perl-framework/t/htdocs/php/construct.php
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
class obj {
|
||||
function method() {}
|
||||
}
|
||||
|
||||
function test($o_copy) {
|
||||
$o_copy->root->set_in_copied_o=TRUE;
|
||||
var_dump($o_copy);?><BR><?php }
|
||||
|
||||
$o->root=new obj();
|
||||
|
||||
ob_start();
|
||||
var_dump($o);
|
||||
$x=ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
$o->root->method();
|
||||
|
||||
ob_start();
|
||||
var_dump($o);
|
||||
$y=ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
// $o->root->method() makes ob_get_contents() have a '&' in front of object
|
||||
// so this does not work.
|
||||
// echo ($x==$y) ? 'success':'failure';
|
||||
|
||||
echo "x = $x";
|
||||
echo "y = $y";
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue