From 22529a07ac74b0d85326a819eb2f848971c5af48 Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Tue, 1 Dec 2020 16:22:07 +0000 Subject: [PATCH] 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. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351822 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/var/functions/serialize.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/var/functions/serialize.xml b/reference/var/functions/serialize.xml index 87ed365d80..cd403ddfcc 100644 --- a/reference/var/functions/serialize.xml +++ b/reference/var/functions/serialize.xml @@ -95,7 +95,7 @@ $sqldata = array (serialize($session_data), $_SERVER['PHP_AUTH_USER']); 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_revers($sqldata))) { /* Something went wrong.. */ } }