xref: /php-src/ext/filter/tests/bug49274.phpt (revision 74859783)
1--TEST--
2#49274, fatal error when an object does not implement toString
3--EXTENSIONS--
4filter
5--FILE--
6<?php
7var_dump(filter_var(new stdClass, FILTER_VALIDATE_EMAIL));
8?>
9--EXPECT--
10bool(false)
11