xref: /PHP-8.0/ext/filter/tests/bug49274.phpt (revision 782352c5)
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--EXPECT--
10bool(false)
11