php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #42458 mistake in PHP example: en/reference/msql/reference.xml
Submitted: 2007-08-28 11:10 UTC Modified: 2007-09-01 09:47 UTC
From: glowacki at europa dot pl Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: any
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: glowacki at europa dot pl
New email:
PHP Version: OS:

 

 [2007-08-28 11:10 UTC] glowacki at europa dot pl
Description:
------------
file: en/reference/msql/reference.xml
...
/* Connecting, selecting database */
$link = msql_connect('localhost', 'username', 'password')
    or die('Could not connect : ' . msql_error($link));

// function 'msql_connect' require only one parameter: hostname|hostaddress

Expected result:
----------------
/* Connecting, selecting database */
$link = msql_connect('localhost')
    or die('Could not connect : ' . msql_error($link));


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-30 15:07 UTC] glowacki at europa dot pl
Expected result:
----------------
/* Connecting, selecting database */
$link = msql_connect('localhost')
    or die('Could not connect : ' . msql_error());
 [2007-09-01 09:47 UTC] nlopess@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-02-07 06:10 UTC] phpdocbot@php.net
Automatic comment on behalf of nlopess
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=34f03ed86fdadf8b7b540cbe113b88a108514aaf
Log: fix bug #42458: fix example
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 29 10:00:02 2025 UTC