Annotation of embedaddon/php/ext/pdo_sqlite/tests/bug60104.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #60104 (Segmentation Fault in pdo_sqlite when using sqliteCreateFunction())
        !             3: --SKIPIF--
        !             4: <?php
        !             5: if (!extension_loaded('pdo_sqlite')) print 'skip not loaded';
        !             6: ?>
        !             7: --FILE--
        !             8: <?php
        !             9: function setUp()
        !            10: {
        !            11:     $handler = new PDO( "sqlite::memory:" );
        !            12:     $handler->sqliteCreateFunction( "md5", "md5", 1 );
        !            13:     unset( $handler );
        !            14: }
        !            15: 
        !            16: setUp();
        !            17: setUp();
        !            18: echo "done";
        !            19: ?>
        !            20: --EXPECTF--
        !            21: done

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