Annotation of embedaddon/php/ext/xmlrpc/tests/bug38431.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #38431 (xmlrpc_get_type() crashes PHP on objects)
                      3: --SKIPIF--
                      4: <?php if (!extension_loaded("xmlrpc")) print "skip"; ?>
                      5: --FILE--
                      6: <?php
                      7: 
                      8: var_dump(xmlrpc_get_type(new stdclass));
                      9: var_dump(xmlrpc_get_type(array()));
                     10: $var = array(1,2,3);
                     11: var_dump(xmlrpc_get_type($var));
                     12: $var = array("test"=>1,2,3);
                     13: var_dump(xmlrpc_get_type($var));
                     14: $var = array("test"=>1,"test2"=>2);
                     15: var_dump(xmlrpc_get_type($var));
                     16: 
                     17: echo "Done\n";
                     18: ?>
                     19: --EXPECTF--    
                     20: string(5) "array"
                     21: string(5) "array"
                     22: string(5) "array"
                     23: string(5) "mixed"
                     24: string(6) "struct"
                     25: Done

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