Edit report at http://pear.php.net/bugs/bug.php?id=18749&edit=1
ID: 18749
Updated by: [email protected]
Reported By: php at gartneriet dot dk
Summary: is_a() behavior changed in php 5.3.7
Status: Open
Type: Bug
Package: DB_DataObject
Package Version: 1.9.5
PHP Version: 5.3.7
Roadmap Versions:
New Comment:
It's a known bug in 5.3.7, 5.3.8 is comming out very soon, so I'm not
sure it's worth fixing.
Previous Comments:
------------------------------------------------------------------------
[2011-08-23 07:25:34] madsliejensen
Description:
------------
In php 5.3.7 is_a() will now trigger the autoloader if the first
argument is not an object.
DB_DataObject uses a line like:
if (is_a($this->$k,'DB_DataObject_Cast')) {
in several places, but in most cases $this->$k is a string, and it will
then trigger any __autoload() you have in your project.
Which again will result in warnings thrown by php when the file is not
found.
These warnings are annoying, but DB_DataObject is still working as it
should.
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=18749&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.