svn: /phpdoc/ja/trunk/reference/var/functions/ serialize.xml

[email protected] (Yoshinari Takaoka)
Newsgroups php.doc.ja
Message-ID <[email protected]>
mumumu                                   Wed, 02 Dec 2020 00:25:58 +0000

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

Log:
Fix #80453: Documentation example error

Actually, this example should better be rewritten to something simpler or at
least something relevant.  However, the unserialize() page has the counter
example, so we postpone that, and apply an odd fix instead.

Bug: https://bugs.php.net/80453 (Closed) Documentation example error
      
Changed paths:
    U   phpdoc/ja/trunk/reference/var/functions/serialize.xml

Modified: phpdoc/ja/trunk/reference/var/functions/serialize.xml
===================================================================
--- phpdoc/ja/trunk/reference/var/functions/serialize.xml	2020-12-02 00:22:57 UTC (rev 351836)
+++ phpdoc/ja/trunk/reference/var/functions/serialize.xml	2020-12-02 00:25:58 UTC (rev 351837)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 349590 Maintainer: hirokawa Status: ready -->
+<!-- EN-Revision: 351823 Maintainer: hirokawa Status: ready -->
 <!-- CREDITS: takagi,mumumu -->
 <refentry xml:id="function.serialize" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
@@ -96,7 +96,7 @@
 if (!odbc_execute($stmt, $sqldata)) {
     $stmt = odbc_prepare($conn,
      "INSERT INTO sessions (id, data) VALUES(?, ?)");
-    if (!odbc_execute($stmt, $sqldata)) {
+    if (!odbc_execute($stmt, array_reverse($sqldata))) {
         /* 何か問題があったようです.. */
     }
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.