Bug #55475 [PATCH]: is_a() triggers autoloader

From: Date: Thu, 22 Sep 2011 23:31:43 +0000
Subject: Bug #55475 [PATCH]: is_a() triggers autoloader
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-163798@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55475&edit=1

 ID:                 55475
 Patch added by:     alan_k@php.net
 Reported by:        mads at gartneriet dot dk
 Summary:            is_a() triggers autoloader
 Status:             Assigned
 Type:               Bug
 Package:            Scripting Engine problem
 PHP Version:        5.3.7
 Assigned To:        dmitry
 Block user comment: N
 Private report:     N

 New Comment:

The following patch has been added/updated:

Patch Name: Is_a_with_allow_string_argument_v3
Revision:   1316734303
URL:        https://bugs.php.net/patch-display.php?bug=55475&patch=Is_a_with_allow_string_argument_v3&revision=1316734303


Previous Comments:
------------------------------------------------------------------------
[2011-09-22 23:26:20] alan_k@php.net

The following patch has been added/updated:

Patch Name: Is_a_with_allow_string_argument_v2
Revision:   1316733980
URL:        https://bugs.php.net/patch-display.php?bug=55475&patch=Is_a_with_allow_string_argument_v2&revision=1316733980

------------------------------------------------------------------------
[2011-09-22 23:24:08] alan_k@php.net

The following patch has been added/updated:

Patch Name: Is_a_with_allow_string_argument
Revision:   1316733848
URL:        https://bugs.php.net/patch-display.php?bug=55475&patch=Is_a_with_allow_string_argument&revision=1316733848

------------------------------------------------------------------------
[2011-09-20 21:32:58] alan_k@php.net

The following patch has been added/updated:

Patch Name: is_class_of.diff
Revision:   1316554378
URL:        https://bugs.php.net/patch-display.php?bug=55475&patch=is_class_of.diff&revision=1316554378

------------------------------------------------------------------------
[2011-09-20 21:30:06] alan_k@php.net

Attached now is a patch that fixes this by adding

is_class_of

Which behaves the same as is_subclass_of, (autoload/ accepts strings)

It also fixes the documentation on is_subclass_of and reverts the behaviour of 
is_a

Note: the is_a change is now a security bug as sending url's to is_a may trigger 
remote code execution now.

Note: I'm not sure you can classify a 2-3 developers comments as the "common 
decision" there where objections to the original change from core developers, 
this patch gives everybody what they want....

------------------------------------------------------------------------
[2011-09-20 21:25:58] alan_k@php.net

The following patch has been added/updated:

Patch Name: is_class_of.txt
Revision:   1316553958
URL:        https://bugs.php.net/patch-display.php?bug=55475&patch=is_class_of.txt&revision=1316553958

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=55475


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=55475&edit=1


Thread (51 messages)

« previous php.bugs (#163798) next »