diff options
| author | Zeev Suraski <zeev@php.net> | 2004-02-02 12:28:19 +0000 | 
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 2004-02-02 12:28:19 +0000 | 
| commit | 8e30d96ad895442d77d3a7c93cd70a052a257427 (patch) | |
| tree | bc950bc1a461a35ebf3215f3b3159569568d8e4f /Zend/zend_language_scanner.l | |
| parent | c7699856fc7918604943d5f10a9191fdd8f1d21b (diff) | |
| download | php-git-8e30d96ad895442d77d3a7c93cd70a052a257427.tar.gz | |
Redesign the clone() feature to fix some fundamental flaws in the previous
implementation.
Using clone directly is now done using
$replica = clone $src;
Clone methods must now be declared as follows:
function __clone($that)
{
}
Clone methods in derived classes can call the __clone method of their parent
classes using parent::__clone($that)
Diffstat (limited to 'Zend/zend_language_scanner.l')
| -rw-r--r-- | Zend/zend_language_scanner.l | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/Zend/zend_language_scanner.l b/Zend/zend_language_scanner.l index 8f9a966d00..13efdaffab 100644 --- a/Zend/zend_language_scanner.l +++ b/Zend/zend_language_scanner.l @@ -928,6 +928,10 @@ NEWLINE ("\r"|"\n"|"\r\n")  	return T_NEW;  } +<ST_IN_SCRIPTING>"clone" { +	return T_CLONE; +} +  <ST_IN_SCRIPTING>"var" {  	return T_VAR;  }  | 
