[PHP-CVS] cvs: php-src(PHP_5_3) /ext/mysqli/tests bug45289.phpt mysqli_options.phpt

2009-05-29 Thread Andrey Hristov
andrey  Fri May 29 08:58:32 2009 UTC

  Modified files:  (Branch: PHP_5_3)
/php-src/ext/mysqli/tests   bug45289.phpt mysqli_options.phpt 
  Log:
  MFH:The option has changed the name, hence we change the test
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/mysqli/tests/bug45289.phpt?r1=1.1.2.2r2=1.1.2.3diff_format=u
Index: php-src/ext/mysqli/tests/bug45289.phpt
diff -u php-src/ext/mysqli/tests/bug45289.phpt:1.1.2.2 
php-src/ext/mysqli/tests/bug45289.phpt:1.1.2.3
--- php-src/ext/mysqli/tests/bug45289.phpt:1.1.2.2  Thu May 28 18:28:08 2009
+++ php-src/ext/mysqli/tests/bug45289.phpt  Fri May 29 08:58:32 2009
@@ -28,4 +28,4 @@
 --EXPECTF--
 [003] [0%s
 
-Fatal error: Call to a member function fetch_assoc() on a non-object in %s on 
line %d
\ No newline at end of file
+Fatal error: Call to a member function fetch_assoc() on a non-object in %s on 
line %d
http://cvs.php.net/viewvc.cgi/php-src/ext/mysqli/tests/mysqli_options.phpt?r1=1.2.2.3r2=1.2.2.4diff_format=u
Index: php-src/ext/mysqli/tests/mysqli_options.phpt
diff -u php-src/ext/mysqli/tests/mysqli_options.phpt:1.2.2.3 
php-src/ext/mysqli/tests/mysqli_options.phpt:1.2.2.4
--- php-src/ext/mysqli/tests/mysqli_options.phpt:1.2.2.3Tue Mar 18 
16:57:31 2008
+++ php-src/ext/mysqli/tests/mysqli_options.phptFri May 29 08:58:32 2009
@@ -39,11 +39,11 @@
$valid_options[] = constant('MYSQLI_OPT_NET_CMD_BUFFER_SIZE');
if ($IS_MYSQLND  defined('MYSQLI_OPT_NET_READ_BUFFER_SIZE'))
$valid_options[] = constant('MYSQLI_OPT_NET_READ_BUFFER_SIZE');
-   if ($IS_MYSQLND  defined('MYSQLI_OPT_INT_AND_YEARS_AS_INT'))
-   $valid_options[] = constant('MYSQLI_OPT_INT_AND_YEARS_AS_INT');
+   if ($IS_MYSQLND  defined('MYSQLI_OPT_INT_AND_FLOAT_NATIVE'))
+   $valid_options[] = constant('MYSQLI_OPT_INT_AND_FLOAT_NATIVE');
if (defined('MYSQLI_OPT_NUMERIC_AND_DATETIME_AS_UNICODE'))
$valid_options[] = 
constant('MYSQLI_OPT_NUMERIC_AND_DATETIME_AS_UNICODE');
-
+   
$tmp= NULL;
$link   = NULL;
 



-- 
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/mysqli/tests bug45289.phpt

2009-05-28 Thread Ulf Wendel
uw  Thu May 28 18:28:08 2009 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/mysqli/tests   bug45289.phpt 
  Log:
  MFH - Andrey needs to have a look at this one. The bug report itself is 
bogus. However, the bug report shows a result set and that is wrong.
  

http://cvs.php.net/viewvc.cgi/php-src/ext/mysqli/tests/bug45289.phpt?view=markuprev=1.1
Index: php-src/ext/mysqli/tests/bug45289.phpt
+++ php-src/ext/mysqli/tests/bug45289.phpt
--TEST--
Bug #45289 (Bogus store_result on PS)
--SKIPIF--
?php
require_once('skipif.inc');
require_once('skipifconnectfailure.inc');
?
--FILE--
?php
include(connect.inc);
require('table.inc');

$id = 1;
if (!($stmt = $link-prepare('SELECT id, label FROM test WHERE id=? 
LIMIT 1')))
printf([001] [%d] %s\n, $link-errno, $link-error);

if (!$stmt-bind_param('i', $id) || !$stmt-execute())
printf([002] [%d] %s\n, $stmt-errno, $stmt-error);

if ($res = $link-store_result()) {
printf([003] Can store result!\n);
} else {
printf([003] [%d] %s\n, $link-errno, $link-error);
}

var_dump($res-fetch_assoc());
?
--EXPECTF--
[003] [0%s

Fatal error: Call to a member function fetch_assoc() on a non-object in %s on 
line %d


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