patrickallaert                           Wed, 26 Oct 2011 09:32:37 +0000

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

Log:
Added test for #60104

Bug: https://bugs.php.net/60104 (Feedback) Segmentation Fault in pdo_sqlite 
when using sqliteCreateFunction()
      
Changed paths:
    A   php/php-src/trunk/ext/pdo_sqlite/tests/bug60104.phpt

Added: php/php-src/trunk/ext/pdo_sqlite/tests/bug60104.phpt
===================================================================
--- php/php-src/trunk/ext/pdo_sqlite/tests/bug60104.phpt                        
        (rev 0)
+++ php/php-src/trunk/ext/pdo_sqlite/tests/bug60104.phpt        2011-10-26 
09:32:37 UTC (rev 318424)
@@ -0,0 +1,21 @@
+--TEST--
+Bug #60104 (Segmentation Fault in pdo_sqlite when using sqliteCreateFunction())
+--SKIPIF--
+<?php
+if (!extension_loaded('pdo_sqlite')) print 'skip not loaded';
+?>
+--FILE--
+<?php
+function setUp()
+{
+    $handler = new PDO( "sqlite::memory:" );
+    $handler->sqliteCreateFunction( "md5", "md5", 1 );
+    unset( $handler );
+}
+
+setUp();
+setUp();
+echo "done";
+?>
+--EXPECTF--
+done

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

Reply via email to