Doc #79581 [NEW]: see the desc and test script

From: Date: Sun, 10 May 2020 19:14:46 +0000
Subject: Doc #79581 [NEW]: see the desc and test script
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17559@lists.php.net to get a copy of this message
From: aguest1618 at protonmail dot com Operating system: doesn't matter PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:see the desc and test script Description: ------------ --- From manual page: https://php.net/mysqli.quickstart.dual-interface --- Example #1 Easy migration from the old mysql extension <?php $mysqli = mysqli_connect("example.com", "user", "password", "database"); $res = mysqli_query($mysqli, "SELECT 'Please, do not use ' AS _msg FROM DUAL"); $row = mysqli_fetch_assoc($res); echo $row['_msg']; $mysql = mysql_connect("example.com", "user", "password"); mysql_select_db("test"); $res = mysql_query("SELECT 'the mysql extension for new developments.' AS _msg FROM DUAL", $mysql); $row = mysql_fetch_assoc($res); echo $row['_msg']; ?> Test script: --------------- In Example #1, are the msgs reversed ? Shouldn't " ... Please do not use ... " be with mysql_connect - the deprecated ver ? and " ...'the mysqli extension for new developments..." be with mysqli_connect - the newer recommended ver ? -- Edit bug report at https://bugs.php.net/bug.php?id=79581&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79581&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79581&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79581&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79581&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79581&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79581&r=support Expected behavior: https://bugs.php.net/fix.php?id=79581&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79581&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79581&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79581&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79581&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79581&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79581&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79581&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79581&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79581&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79581&r=mysqlcfg

« previous php.doc.bugs (#17559) next »