mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
* 5.3 RC1 -> beta1 for connect_error property fix.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@277058 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
3c2bce9c03
commit
436cfd945e
2 changed files with 6 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<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.0RC1.
|
||||
// Works as of PHP 5.2.9 and 5.3.0beta1.
|
||||
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->connect_error property only works properly
|
||||
as of PHP versions 5.2.9 and 5.3.0RC1.
|
||||
as of PHP versions 5.2.9 and 5.3.0beta1.
|
||||
</para>
|
||||
</warning>
|
||||
</refsect1>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.10 $ -->
|
||||
<!-- $Revision: 1.11 $ -->
|
||||
<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.0RC1.
|
||||
* BUT $connect_error was broken until PHP 5.2.9 and 5.3.0beta1.
|
||||
*/
|
||||
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.0RC1.
|
||||
* compatibility with PHP versions prior to 5.2.9 and 5.3.0beta1.
|
||||
*/
|
||||
if (mysqli_connect_error()) {
|
||||
die('Connect Error (' . mysqli_connect_errno() . ') '
|
||||
|
|
Loading…
Reference in a new issue