]> granicus.if.org Git - php/commitdiff
This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
authorSVN Migration <svn@php.net>
Sun, 9 Jan 2005 18:15:50 +0000 (18:15 +0000)
committerSVN Migration <svn@php.net>
Sun, 9 Jan 2005 18:15:50 +0000 (18:15 +0000)
ext/session/tests/bug31454.phpt [new file with mode: 0644]

diff --git a/ext/session/tests/bug31454.phpt b/ext/session/tests/bug31454.phpt
new file mode 100644 (file)
index 0000000..85ada11
--- /dev/null
@@ -0,0 +1,19 @@
+--TEST--
+bug #31454 (session_set_save_handler crashes PHP when supplied non-existent object ref)
+--FILE--
+<?php
+
+session_set_save_handler(
+       array(&$arf, 'open'),
+       array(&$arf, 'close'),
+       array(&$arf, 'read'),
+       array(&$arf, 'write'),
+       array(&$arf, 'destroy'),
+       array(&$arf, 'gc'));
+       
+echo "Done\n";
+?>
+--EXPECTF--
+
+Warning: session_set_save_handler(): Argument 1 is not a valid callback in %s/bug31454.php on line %d
+Done