1--TEST--
2Test property_exists() function : class auto loading
3--FILE--
4<?php
5/* Prototype  : bool property_exists(mixed object_or_class, string property_name)
6 * Description: Checks if the object or class has a property
7 * Source code: Zend/zend_builtin_functions.c
8 * Alias to functions:
9 */
10
11echo "*** Testing property_exists() : class auto loading ***\n";
12
13function __autoload($class_name) {
14    require_once $class_name . '.inc';
15}
16
17echo "\ntesting property in autoloaded class\n";
18var_dump(property_exists("AutoTest", "bob"));
19
20echo "\ntesting __get magic method\n";
21var_dump(property_exists("AutoTest", "foo"));
22
23?>
24===DONE===
25--EXPECTF--
26*** Testing property_exists() : class auto loading ***
27
28testing property in autoloaded class
29bool(true)
30
31testing __get magic method
32bool(false)
33===DONE===
34