ID:               34352
 Updated by:       [EMAIL PROTECTED]
 Reported By:      sr at brightlight dot ch
-Status:           Closed
+Status:           Bogus
 Bug Type:         Documentation problem
 Operating System: *
 PHP Version:      Irrelevant
 New Comment:

Thus not a bug.


Previous Comments:
------------------------------------------------------------------------

[2005-09-03 05:17:49] sr at brightlight dot ch

More careful reading would have helped. I was too used with 
the result beeing of type resource and not object (which didnt 
make sense to me just for a link).
Sorry for the inconvenience.

------------------------------------------------------------------------

[2005-09-03 05:00:26] sr at brightlight dot ch

I'd also like to point out that in the mysqli documentation 
there is a lot of talk about using procedural style with a 
link-resource. There is no way to actually retrieve the link-
resource. At least none is given in the manual. There is no 
property, mysqli_connect doesnt return one and there is no 
documented method for it.

------------------------------------------------------------------------

[2005-09-02 21:32:38] sr at brightlight dot ch

Description:
------------
Quote from http://php.benscom.com/manual/en/function.mysqli-
connect.php:

Example 2. Procedural style

<?php
$link = mysqli_connect("localhost", "my_user", 
"my_password", "world");

/* check connection */ 
if (!$link) {
   printf("Connect failed: %s\n", mysqli_connect_error());
   exit();
}
...
?>
This leads to the wrong assumption mysqli_connect would 
return a link resource which it doesnt.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=34352&edit=1

Reply via email to