ID: 27388 Comment by: papercrane at reversefold dot com Reported By: agl at xs4all dot nl Status: Wont fix Bug Type: Feature/Change Request Operating System: * PHP Version: 5.0.0b4 (beta4) New Comment:
Does the compatibility mode show when old semantics are used? If not, this bug is still valid IMHO. People need a way to find incompatibilities between PHP4 code and PHP5 without having to eyeball everything or hunt down obscure errors. Previous Comments: ------------------------------------------------------------------------ [2004-02-25 03:26:52] [EMAIL PROTECTED] There is a compatibility mode that allows implicit object cloning as PHP 4 did, so this does not fit into E_STRICT. ------------------------------------------------------------------------ [2004-02-24 23:15:36] agl at xs4all dot nl Description: ------------ Background: People need a migration path from PHP4 to PHP5. Some things that work in PHP5 won't work in PHP5, or work differently. PHP5 has an E_STRICT setting, which catches many of these issues. They can be logged, so a dev can enable this, go through their log for a while, until it stays empty Then their app should be relatively clean. Issue: Not all situations are checked. They need to be, otherwise the migration path is still not clear. For instance a pass-object-by-value which is allowed in PHP4 simply ends up being a pass-object-by-reference in PHP5. I would suggest that with E_STRICT enabled, PHP5 should issue a warning if no &$obj is specified. Yes this is slightly ugly and perhaps there are nicer solutions possible. I'm merely pointing out the need to address the migration issue. All of it, not 90%. 90% is not enough for the real world. There are very big PHP apps out there, and just having people dig through all code hoping to spot all issues is unrealistic. Thanks. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27388&edit=1
