From:             agl at xs4all dot nl
Operating system: any
PHP version:      5.0.0b4 (beta4)
PHP Bug Type:     Feature/Change Request
Bug description:  complete compatibility check in E_STRICT mode

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 bug report at http://bugs.php.net/?id=27388&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27388&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27388&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27388&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27388&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27388&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27388&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27388&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27388&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27388&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27388&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27388&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27388&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27388&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27388&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27388&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27388&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27388&r=float

Reply via email to