Edit report at http://bugs.php.net/bug.php?id=49274&edit=1

 ID:               49274
 Updated by:       [email protected]
 Reported by:      [email protected]
 Summary:          filter_var() should accept objects without fatal error
-Status:           Assigned
+Status:           Closed
 Type:             Feature/Change Request
-Package:          Feature/Change Request
+Package:          *General Issues
 Operating System: *
 PHP Version:      5.3SVN-2009-08-16 (SVN)
 Assigned To:      pajoye



Previous Comments:
------------------------------------------------------------------------
[2009-10-09 17:32:53] [email protected]

Automatic comment from SVN on behalf of pajoye
Revision: http://svn.php.net/viewvc/?view=revision&revision=289434
Log: - Merge: fix #49274, filter_var does not accept object without a
toString implementation

------------------------------------------------------------------------
[2009-09-05 17:37:03] [email protected]

I will close it as soon as it gets merged in 5.3.1, if the RM agrees.

------------------------------------------------------------------------
[2009-09-05 17:35:27] [email protected]

Automatic comment from SVN on behalf of pajoye
Revision: http://svn.php.net/viewvc/?view=revision&revision=288083
Log: - fix #49274, filter_var does not accept object without a toString
implementation

------------------------------------------------------------------------
[2009-08-17 21:59:13] [email protected]

http://pastie.org/586442 should do it. I did not not test more than the
test case here.

------------------------------------------------------------------------
[2009-08-17 13:55:58] [email protected]

it is indeed valid for all objects but it is still an edge case.



A check for IS_OBJECT + tostring() existence could be easy enough and
with almost no impact(perf impact is null on the existing application).
If you have some time to write one, go ahead.

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


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

    http://bugs.php.net/bug.php?id=49274


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

Reply via email to