Annotation of embedaddon/php/ext/spl/tests/spl_autoload_009.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: SPL: spl_autoload() and friends
                      3: --INI--
                      4: include_path=.
                      5: --FILE--
                      6: <?php
                      7: 
                      8: function my_autoload($name)
                      9: {
                     10:        require $name . '.class.inc';
                     11:        var_dump(class_exists($name));
                     12: }
                     13: 
                     14: spl_autoload_register("spl_autoload");
                     15: spl_autoload_register("my_autoload");
                     16: 
                     17: $obj = new testclass;
                     18: 
                     19: ?>
                     20: ===DONE===
                     21: <?php exit(0); ?>
                     22: --EXPECTF--
                     23: %stestclass.inc
                     24: %stestclass.class.inc
                     25: bool(true)
                     26: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>