Hi!
This should implement the isset() return false, and accessing producing
a warning (but 'less' BC by returning the first character)
https://bugs.php.net/patch-display.php?bug_id=60362&patch=isset_changed_warning_only_on_access.patch&revision=latest
<https://bugs.php.net/patch-display.php?bug_id=60362&patch=isset_changed_warning_only_on_access.patch&revision=latest>
I did end up changing most of the error messages in the affected tests
to "%s on line %d".... is that the prefered way of doing it?
One note about this: conversion behavior is non-obvious there, e.g.:
'foo' - gets converted to 0 and produces: Illegal string offset 'foo'
'12.34' - gets converted to 12 and produces: Illegal string offset '12.34'
but '56 and foo' - gets converted to 56 and produces: A non well formed
numeric value encountered
I guess it's ok but error messages are different.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php