php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #34549 Typo in function.pg-last-oid.php
Submitted: 2005-09-19 13:33 UTC Modified: 2005-09-19 13:47 UTC
From: stochnagara at hotmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: stochnagara at hotmail dot com
New email:
PHP Version: OS:

 

 [2005-09-19 13:33 UTC] stochnagara at hotmail dot com
Description:
------------
There is a typo in function.pg-last-oid.php.

Example 1 is actually a pg_last_oid example but not pg_last_error() example.


Expected result:
----------------
Example 1. pg_last_oid() example
<?php
  $pgsql_conn = pg_connect("dbname=mark host=localhost");
 
  $res1 = pg_query("CREATE TABLE test (a INTEGER) WITH OIDS");

  $res2 = pg_query("INSERT INTO test VALUES (1)");
 
  $oid = pg_last_oid($res2);
?> 

Actual result:
--------------
Example 1. pg_last_error() example
<?php
  $pgsql_conn = pg_connect("dbname=mark host=localhost");
 
  $res1 = pg_query("CREATE TABLE test (a INTEGER) WITH OIDS");

  $res2 = pg_query("INSERT INTO test VALUES (1)");
 
  $oid = pg_last_oid($res2);
?> 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-19 13:47 UTC] mazzanet@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:11 UTC] phpdocbot@php.net
Automatic comment on behalf of mazzanet
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=f5de2125ffac9e1471a400a2f8fbb5dff5f6e710
Log: Fix #34549
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 07 12:01:35 2025 UTC