* Round up to whole version regarding connect_error oddities.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@277107 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Daniel Convissor 2009-03-13 14:46:22 +00:00
parent 641729d204
commit 08ab232bdc
2 changed files with 6 additions and 6 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<refentry xml:id="mysqli.connect-error" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>mysqli->connect_error</refname>
@ -39,7 +39,7 @@
<?php
$mysqli = @new mysqli('localhost', 'fake_user', 'my_password', 'my_db');
// Works as of PHP 5.2.9 and 5.3.0beta1.
// Works as of PHP 5.2.9 and 5.3.0.
if ($mysqli->connect_error) {
die('Connect Error: ' . $mysqli->connect_error);
}
@ -74,7 +74,7 @@ Connect Error: Access denied for user 'fake_user'@'localhost' (using password: Y
<warning>
<para>
The mysqli-&gt;connect_error property only works properly
as of PHP versions 5.2.9 and 5.3.0beta1.
as of PHP versions 5.2.9 and 5.3.0.
</para>
</warning>
</refsect1>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.11 $ -->
<!-- $Revision: 1.12 $ -->
<refentry xml:id="mysqli.connect" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>mysqli::__construct</refname>
@ -153,7 +153,7 @@ $mysqli = new mysqli('localhost', 'my_user', 'my_password', 'my_db');
/*
* This is the "official" OO way to do it,
* BUT $connect_error was broken until PHP 5.2.9 and 5.3.0beta1.
* BUT $connect_error was broken until PHP 5.2.9 and 5.3.0.
*/
if ($mysqli->connect_error) {
die('Connect Error (' . $mysqli->connect_errno . ') '
@ -162,7 +162,7 @@ if ($mysqli->connect_error) {
/*
* Use this instead of $connect_error if you need to ensure
* compatibility with PHP versions prior to 5.2.9 and 5.3.0beta1.
* compatibility with PHP versions prior to 5.2.9 and 5.3.0.
*/
if (mysqli_connect_error()) {
die('Connect Error (' . mysqli_connect_errno() . ') '