php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #42459 mistake in PHP example: en/reference/ifx/functions/ifx-query.xml
Submitted: 2007-08-28 11:25 UTC Modified: 2007-09-01 09:42 UTC
From: glowacki at europa dot pl Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.2.3 OS: any
Private report: No CVE-ID: None
 [2007-08-28 11:25 UTC] glowacki at europa dot pl
Description:
------------
mistake in PHP example: en/reference/ifx/functions/ifx-query.xml

file: en/reference/ifx/functions/ifx-query.xml
...
$res_id = ifx_query("select * from orders", $conn_id);
if (! $res_id) {
    printf("Can't select orders : %s\n<br />%s<br />\n", ifx_error());
    ifx_errormsg();
    die;

// printf(): Too few arguments
// unexpected ');' after 'ifx_error()'

Expected result:
----------------
$res_id = ifx_query("select * from orders", $conn_id);
if (! $res_id) {
    printf("Can't select orders : %s\n<br />%s<br />\n", ifx_error(), ifx_errormsg());
    die;



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-28 11:46 UTC] jani@php.net
Reclassified.
 [2007-09-01 09:42 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=c1190663f8b0b3153bb78dffc0070c08df6fb37e
Log: fix bug #42459: fix example
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 28 05:00:03 2025 UTC