xref: /PHP-5.3/ext/filter/tests/bug49274.phpt (revision 3dd3cbb6)
1--TEST--
2#49274, fatal error when an object does not implement toString
3--SKIPIF--
4<?php if (!extension_loaded("filter")) die("skip"); ?>
5--FILE--
6<?php
7var_dump(filter_var(new stdClass, FILTER_VALIDATE_EMAIL));
8?>
9--EXPECTF--
10bool(false)
11