xref: /PHP-7.4/Zend/tests/class_exists_002.phpt (revision 782352c5)
1--TEST--
2Testing several valid and invalid parameters
3--FILE--
4<?php
5
6class foo {
7
8}
9
10var_dump(class_exists(''));
11var_dump(class_exists(NULL));
12var_dump(class_exists('FOO'));
13var_dump(class_exists('bar'));
14var_dump(class_exists(1));
15var_dump(class_exists(new stdClass));
16
17?>
18--EXPECTF--
19bool(false)
20bool(false)
21bool(true)
22bool(false)
23bool(false)
24
25Warning: class_exists() expects parameter 1 to be string, object given in %s on line %d
26NULL
27