List:Commits« Previous MessageNext Message »
From:uwendel Date:July 11 2007 1:54pm
Subject:PHP mysqlnd svn commit: r711 - trunk/tests/ext/mysql
View as plain text  
Author: uwendel
Date: 2007-07-11 15:54:31 +0200 (Wed, 11 Jul 2007)
New Revision: 711

Modified:
   trunk/tests/ext/mysql/mysql_fetch_lengths.phpt
   trunk/tests/ext/mysql/mysql_fetch_object.phpt
Log:
Whitespace only


Modified: trunk/tests/ext/mysql/mysql_fetch_lengths.phpt
===================================================================
--- trunk/tests/ext/mysql/mysql_fetch_lengths.phpt	2007-07-11 13:16:47 UTC (rev 710)
+++ trunk/tests/ext/mysql/mysql_fetch_lengths.phpt	2007-07-11 13:54:31 UTC (rev 711)
@@ -4,32 +4,32 @@
 <?php require_once('skipif.inc'); ?>
 --FILE--
 <?php
-    include "connect.inc";
-    
-    $tmp    = NULL;
-    $link   = NULL;
+include "connect.inc";
 
-    if (!is_null($tmp = @mysql_fetch_lengths()))
-        printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
+$tmp    = NULL;
+$link   = NULL;
 
-    if (false !== ($tmp = @mysql_fetch_lengths($link)))
-        printf("[002] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
+if (!is_null($tmp = @mysql_fetch_lengths()))
+	printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
 
-    require('table.inc');
-    if (!$res = mysql_query("SELECT id, label FROM test ORDER BY id LIMIT 1", $link)) {
-        printf("[003] [%d] %s\n", mysql_errno($link), mysql_error($link));
-    }
-    
-    while ($row = mysql_fetch_assoc($res))
-        var_dump(mysql_fetch_lengths($res));
-    var_dump(mysql_fetch_lengths($res));
+if (false !== ($tmp = @mysql_fetch_lengths($link)))
+	printf("[002] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
 
-    mysql_free_result($res);
-    
-    var_dump(mysql_fetch_lengths($res));
-    
-    mysql_close($link);
-    print "done!";
+require('table.inc');
+if (!$res = mysql_query("SELECT id, label FROM test ORDER BY id LIMIT 1", $link)) {
+	printf("[003] [%d] %s\n", mysql_errno($link), mysql_error($link));
+}
+
+while ($row = mysql_fetch_assoc($res))
+	var_dump(mysql_fetch_lengths($res));
+var_dump(mysql_fetch_lengths($res));
+
+mysql_free_result($res);
+
+var_dump(mysql_fetch_lengths($res));
+
+mysql_close($link);
+print "done!";
 ?>
 --EXPECTF--
 array(2) {
@@ -42,4 +42,4 @@
 
 Warning: mysql_fetch_lengths(): %d is not a valid MySQL result resource in %s on line %d
 bool(false)
-done! 
\ No newline at end of file
+done!
\ No newline at end of file

Modified: trunk/tests/ext/mysql/mysql_fetch_object.phpt
===================================================================
--- trunk/tests/ext/mysql/mysql_fetch_object.phpt	2007-07-11 13:16:47 UTC (rev 710)
+++ trunk/tests/ext/mysql/mysql_fetch_object.phpt	2007-07-11 13:54:31 UTC (rev 711)
@@ -4,66 +4,66 @@
 <?php require_once('skipif.inc'); ?>
 --FILE--
 <?php
-    include "connect.inc";
+include "connect.inc";
 
-    $tmp    = NULL;
-    $link   = NULL;
+$tmp    = NULL;
+$link   = NULL;
 
-    if (!is_null($tmp = @mysql_fetch_object()))
-        printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
+if (!is_null($tmp = @mysql_fetch_object()))
+	printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
 
-    if (false !== ($tmp = @mysql_fetch_object($link)))
-        printf("[002] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);       
        
+if (false !== ($tmp = @mysql_fetch_object($link)))
+	printf("[002] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
 
-    require('table.inc');
-    if (!$res = mysql_query("SELECT id AS ID, label FROM test AS TEST ORDER BY id LIMIT
5", $link)) {
-        printf("[003] [%d] %s\n", mysql_errno($link), mysql_error($link));
-    }
-    
-    var_dump(mysql_fetch_object($res));
-            
-    class mysql_fetch_object_test {
-        
-        public $a = null;
-        public $b = null;              
-        
-        public function toString() {
-            var_dump($this);
-        }        
-    }
-    
-    var_dump(mysql_fetch_object($res, 'mysql_fetch_object_test'));
-        
-    class mysql_fetch_object_construct extends mysql_fetch_object_test {
-        
-        public function __construct($a, $b) {
-            $this->a = $a;
-            $this->b = $b;
-        }
-        
-    }
-    
-    var_dump(mysql_fetch_object($res, 'mysql_fetch_object_construct', null));        
-    var_dump(mysql_fetch_object($res, 'mysql_fetch_object_construct', array('a')));
-    var_dump(mysql_fetch_object($res, 'mysql_fetch_object_construct', array('a', 'b'))); 
  
-    var_dump(mysql_fetch_object($res, 'mysql_fetch_object_construct', array('a', 'b',
'c')));    
-    var_dump(mysql_fetch_object($res));
-    
-    mysql_free_result($res); 
-    
-    if (!$res = mysql_query("SELECT id AS ID, label FROM test AS TEST", $link)) {
-        printf("[009] [%d] %s\n", mysql_errno($link), mysql_error($link));
-    }
-    
-    mysql_free_result($res);
-    
-    var_dump(mysql_fetch_object($res));
-    
-    // Fatal error, script execution will end
-    var_dump(mysql_fetch_object($res, 'this_class_does_not_exist'));   
-    
-    mysql_close($link);
-    print "done!";
+require('table.inc');
+if (!$res = mysql_query("SELECT id AS ID, label FROM test AS TEST ORDER BY id LIMIT 5",
$link)) {
+	printf("[003] [%d] %s\n", mysql_errno($link), mysql_error($link));
+}
+
+var_dump(mysql_fetch_object($res));
+
+class mysql_fetch_object_test {
+
+	public $a = null;
+	public $b = null;
+
+	public function toString() {
+		var_dump($this);
+	}
+}
+
+var_dump(mysql_fetch_object($res, 'mysql_fetch_object_test'));
+
+class mysql_fetch_object_construct extends mysql_fetch_object_test {
+
+	public function __construct($a, $b) {
+		$this->a = $a;
+		$this->b = $b;
+	}
+
+}
+
+var_dump(mysql_fetch_object($res, 'mysql_fetch_object_construct', null));
+var_dump(mysql_fetch_object($res, 'mysql_fetch_object_construct', array('a')));
+var_dump(mysql_fetch_object($res, 'mysql_fetch_object_construct', array('a', 'b')));
+var_dump(mysql_fetch_object($res, 'mysql_fetch_object_construct', array('a', 'b', 'c')));
+var_dump(mysql_fetch_object($res));
+
+mysql_free_result($res);
+
+if (!$res = mysql_query("SELECT id AS ID, label FROM test AS TEST", $link)) {
+	printf("[009] [%d] %s\n", mysql_errno($link), mysql_error($link));
+}
+
+mysql_free_result($res);
+
+var_dump(mysql_fetch_object($res));
+
+// Fatal error, script execution will end
+var_dump(mysql_fetch_object($res, 'this_class_does_not_exist'));
+
+mysql_close($link);
+print "done!";
 ?>
 --EXPECTF--
 object(stdClass)#%d (2) {

Thread
PHP mysqlnd svn commit: r711 - trunk/tests/ext/mysqluwendel11 Jul