mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
- $clone -> $that
This commit is contained in:
parent
c92758c89e
commit
f40e3b8548
@ -264,7 +264,7 @@ Example 8: __clone()
|
||||
|
||||
function __clone()
|
||||
{
|
||||
$this->name = $clone->name;
|
||||
$this->name = $that->name;
|
||||
$this->address = "New York";
|
||||
$this->id = self::$id++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user