Return to bug54292.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / spl / tests |
1.1 misho 1: --TEST-- 2: Bug #54292 (Wrong parameter causes crash in SplFileObject::__construct()) 3: --FILE-- 4: <?php 5: 6: try { 7: new SplFileObject('foo', array()); 8: } catch (Exception $e) { 9: var_dump($e->getMessage()); 10: } 11: 12: ?> 13: --EXPECTF-- 14: string(74) "SplFileObject::__construct() expects parameter 2 to be string, array given"