[PHP-CVS] cvs: php-src(PHP_5_3) /ext/pdo/tests bug_44159.phpt

2009-01-05 Thread Antony Dovgal
tony2001Mon Jan  5 16:02:05 2009 UTC

  Modified files:  (Branch: PHP_5_3)
/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.2.4r2=1.1.2.5diff_format=u
Index: php-src/ext/pdo/tests/bug_44159.phpt
diff -u php-src/ext/pdo/tests/bug_44159.phpt:1.1.2.4 
php-src/ext/pdo/tests/bug_44159.phpt:1.1.2.5
--- php-src/ext/pdo/tests/bug_44159.phpt:1.1.2.4Mon Jul 21 13:09:28 2008
+++ php-src/ext/pdo/tests/bug_44159.phptMon Jan  5 16:02:04 2009
@@ -4,14 +4,14 @@
 ?php # vim:ft=php
 if (!extension_loaded('pdo')) die('skip PDO not available');
 try {
-   $pdo = new PDO(sqlite:/tmp/foo.db);
+   $pdo = new PDO(sqlite:.__DIR__./foo.db);
 } catch (Exception $e) {
die(skip PDP_SQLITE not available);
 }
 ?
 --FILE--
 ?php
-$pdo = new PDO(sqlite:/tmp/foo.db);
+$pdo = new PDO(sqlite:.__DIR__./foo.db);
 
 $attrs = array(PDO::ATTR_STATEMENT_CLASS, PDO::ATTR_STRINGIFY_FETCHES, 
PDO::NULL_TO_STRING);
 
@@ -21,6 +21,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



[PHP-CVS] cvs: php-src(PHP_5_3) /ext/pdo/tests bug_44159.phpt

2008-02-21 Thread Felipe Pena
felipe  Fri Feb 22 02:15:43 2008 UTC

  Modified files:  (Branch: PHP_5_3)
/php-src/ext/pdo/tests  bug_44159.phpt 
  Log:
  Fix test
  
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo/tests/bug_44159.phpt?r1=1.1.2.1r2=1.1.2.2diff_format=u
Index: php-src/ext/pdo/tests/bug_44159.phpt
diff -u php-src/ext/pdo/tests/bug_44159.phpt:1.1.2.1 
php-src/ext/pdo/tests/bug_44159.phpt:1.1.2.2
--- php-src/ext/pdo/tests/bug_44159.phpt:1.1.2.1Tue Feb 19 14:53:04 2008
+++ php-src/ext/pdo/tests/bug_44159.phptFri Feb 22 02:15:42 2008
@@ -23,10 +23,11 @@
 
 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
 bool(false)
+
+Warning: PDO::setAttribute(): SQLSTATE[HY000]: General error: attribute value 
must be an integer in %s on line %d
+bool(false)
 bool(true)
 bool(true)
 bool(true)
 bool(true)
 bool(true)
-bool(true)
-

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



[PHP-CVS] cvs: php-src(PHP_5_3) /ext/pdo/tests bug_44159.phpt

2008-02-19 Thread Felipe Pena
felipe  Tue Feb 19 14:53:04 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/pdo/tests  bug_44159.phpt 
  Log:
  New test
  

http://cvs.php.net/viewvc.cgi/php-src/ext/pdo/tests/bug_44159.phpt?view=markuprev=1.1
Index: php-src/ext/pdo/tests/bug_44159.phpt
+++ php-src/ext/pdo/tests/bug_44159.phpt

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