[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-cvs
Subject:    [DOC-CVS] =?utf-8?q?svn:_/phpdoc/en/trunk/reference/pdo/pdostatement/_fetchall.xml?=
From:       Andrey_Andreev <narf () php ! net>
Date:       2017-03-16 12:17:12
Message-ID: svn-narf-1489666632-342140-140464298 () svn ! php ! net
[Download RAW message or body]

narf                                     Thu, 16 Mar 2017 12:17:12 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=342140

Log:
Docs bug #66542: Fix inconsistencies in PDOStatement::fetchAll() examples

Bug: https://bugs.php.net/66542 (Open) Example and explanation do not match
      
Changed paths:
    U   phpdoc/en/trunk/reference/pdo/pdostatement/fetchall.xml

Modified: phpdoc/en/trunk/reference/pdo/pdostatement/fetchall.xml
===================================================================
--- phpdoc/en/trunk/reference/pdo/pdostatement/fetchall.xml	2017-03-16 07:39:06 UTC (rev 342139)
+++ phpdoc/en/trunk/reference/pdo/pdostatement/fetchall.xml	2017-03-16 12:17:12 UTC (rev 342140)
@@ -135,13 +135,21 @@
 (
     [0] => Array
         (
+            [name] => apple
+            [0] => apple
+            [colour] => red
+            [1] => red
+        )
+
+    [1] => Array
+        (
             [name] => pear
             [0] => pear
             [colour] => green
             [1] => green
         )

-    [1] => Array
+    [2] => Array
         (
             [name] => watermelon
             [0] => watermelon
@@ -231,7 +239,7 @@
   ["watermelon"]=>
   array(1) {
     [0]=>
-    string(5) "green"
+    string(5) "pink"
   }
 }

@@ -284,6 +292,20 @@
     ["colour"]=>
     string(4) "pink"
   }
+  [3]=>
+  object(fruit)#4 (2) {
+    ["name"]=>
+    string(5) "apple"
+    ["colour"]=>
+    string(3) "red"
+  }
+  [4]=>
+  object(fruit)#5 (2) {
+    ["name"]=>
+    string(4) "pear"
+    ["colour"]=>
+    string(5) "green"
+  }
 }
 ]]>
     </screen>
@@ -318,6 +340,10 @@
   string(12) "pear: yellow"
   [2]=>
   string(16) "watermelon: pink"
+  [3]=>
+  string(10) "apple: red"
+  [4]=>
+  string(11) "pear: green"
 }
 ]]>
     </screen>



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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic