laruence                                 Wed, 14 Sep 2011 05:02:50 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=316714

Log:
Add test for bug #55688

Bug: https://bugs.php.net/55688 (Open) Crash when calling SessionHandler::gc()
      
Changed paths:
    A   php/php-src/branches/PHP_5_4/ext/session/tests/bug55688.phpt
    A   php/php-src/trunk/ext/session/tests/bug55688.phpt

Added: php/php-src/branches/PHP_5_4/ext/session/tests/bug55688.phpt
===================================================================
--- php/php-src/branches/PHP_5_4/ext/session/tests/bug55688.phpt                
                (rev 0)
+++ php/php-src/branches/PHP_5_4/ext/session/tests/bug55688.phpt        
2011-09-14 05:02:50 UTC (rev 316714)
@@ -0,0 +1,15 @@
+--TEST--
+Bug #55688 (Crash when calling SessionHandler::gc())
+--SKIPIF--
+<?php include('skipif.inc'); ?>
+--INI--
+html_errors=0
+session.save_handler=files
+--FILE--
+<?php
+ini_set('session.save_handler', 'files');
+$x = new SessionHandler;
+$x->gc(1);
+?>
+--EXPECTF--
+Warning: SessionHandler::gc(): Parent session handler is not open in %s on 
line %d

Added: php/php-src/trunk/ext/session/tests/bug55688.phpt
===================================================================
--- php/php-src/trunk/ext/session/tests/bug55688.phpt                           
(rev 0)
+++ php/php-src/trunk/ext/session/tests/bug55688.phpt   2011-09-14 05:02:50 UTC 
(rev 316714)
@@ -0,0 +1,15 @@
+--TEST--
+Bug #55688 (Crash when calling SessionHandler::gc())
+--SKIPIF--
+<?php include('skipif.inc'); ?>
+--INI--
+html_errors=0
+session.save_handler=files
+--FILE--
+<?php
+ini_set('session.save_handler', 'files');
+$x = new SessionHandler;
+$x->gc(1);
+?>
+--EXPECTF--
+Warning: SessionHandler::gc(): Parent session handler is not open in %s on 
line %d

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to