Date: 11/27/00
- Next message: André Langhorst: "Re: [PHP-DEV] Re: PHP 4.0 Bug #7996 Updated: CGI"
- Previous message: torben <email protected>: "[PHP-DEV] PHP 4.0 Bug #7992 Updated: Non-Quoted Strings = bad idea"
- In reply to: Andi Gutmans: "[PHP-DEV] Passing by reference"
- Next in thread: Andi Gutmans: "Re: [PHP-DEV] Passing by reference"
- Reply: Andi Gutmans: "Re: [PHP-DEV] Passing by reference"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> Please let me know if this solves some of the bugs people have been
> reporting with the current CVS tree.
As I already told, my testcases all work now :)
but there's another problem ...
didn't the "$this in constructor"||"new always returns refernce" patch
go in? as I added to bug 7454 the following code still doesn't work...
andré
<?php
class foo {
function foo($name) {
$GLOBALS['List']= &$this;
$this->Name = $name;
$GLOBALS['List']->echoName(); }
function echoName() {
echo "<br>".$this->Name; } }
function &foo2(&$foo) {
return $foo; }
$bar1 = new foo('constructor1');
//$bar1 = foo2(new foo('constructor1'));
$bar1->Name = 'outside1';
$bar1->echoName();
$List->echoName();
echo '<P>';
?>
-- · André Langhorst · t: +49 571 3201801 · · waldschrott <email protected> · m: +49 173 9558736 · · PHP Quality Assurance · http://qa.php.net ·-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: André Langhorst: "Re: [PHP-DEV] Re: PHP 4.0 Bug #7996 Updated: CGI"
- Previous message: torben <email protected>: "[PHP-DEV] PHP 4.0 Bug #7992 Updated: Non-Quoted Strings = bad idea"
- In reply to: Andi Gutmans: "[PHP-DEV] Passing by reference"
- Next in thread: Andi Gutmans: "Re: [PHP-DEV] Passing by reference"
- Reply: Andi Gutmans: "Re: [PHP-DEV] Passing by reference"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

