tony2001 Mon Jan 5 16:01:45 2009 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/pdo/tests bug_44159.phpt Log: create temporary db in the current dir and cleanup on completion http://cvs.php.net/viewvc.cgi/php-src/ext/pdo/tests/bug_44159.phpt?r1=1.1.4.4&r2=1.1.4.5&diff_format=u Index: php-src/ext/pdo/tests/bug_44159.phpt diff -u php-src/ext/pdo/tests/bug_44159.phpt:1.1.4.4 php-src/ext/pdo/tests/bug_44159.phpt:1.1.4.5 --- php-src/ext/pdo/tests/bug_44159.phpt:1.1.4.4 Thu Apr 10 19:09:49 2008 +++ php-src/ext/pdo/tests/bug_44159.phpt Mon Jan 5 16:01:45 2009 @@ -7,7 +7,8 @@ --FILE-- <?php -$pdo = new PDO("sqlite:/tmp/foo.db"); +$dir = dirname(__FILE__); +$pdo = new PDO("sqlite:$dir/foo.db"); $attrs = array(PDO::ATTR_STATEMENT_CLASS, PDO::ATTR_STRINGIFY_FETCHES, PDO::NULL_TO_STRING); @@ -17,6 +18,8 @@ var_dump($pdo->setAttribute($attr, 'nonsense')); } +...@unlink($dir."/foo.db"); + ?> --EXPECTF-- Warning: PDO::setAttribute(): SQLSTATE[HY000]: General error: PDO::ATTR_STATEMENT_CLASS requires format array(classname, array(ctor_args)); the classname must be a string specifying an existing class in %s on line %d
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php