php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #68892 Missing few details in online manual page.
Submitted: 2015-01-23 13:53 UTC Modified: 2015-12-18 10:03 UTC
From: moravcik at fns dot uniba dot sk Assigned: yohgaki (profile)
Status: Closed Package: PostgreSQL related
PHP Version: Irrelevant OS: Fedora 21 x86_64
Private report: No CVE-ID: None
 [2015-01-23 13:53 UTC] moravcik at fns dot uniba dot sk
Description:
------------
---
From manual page: http://www.php.net/function.pg-escape-literal
---
php 5.6.4

1. Square brackets around the optional argument should end after the comma. Omitting the first argument and leaving comma at the beginning of the argument list causes an error.

2. Using pg_escape_literal without connection resource caused function
to return false (boolean). This option is not documented.



Test script:
---------------
<?php
  /* Using pg_escape_literal without connection info causes function to return false (boolean)*/
echo "Did pg_escape_literal without connection resource return false? " . (false === pg_escape_literal("sda"))."<br>";

?>


Actual result:
--------------
Did pg_escape_literal without connection resource return false? 1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-01-25 01:57 UTC] yohgaki@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: yohgaki
 [2015-12-18 09:32 UTC] yohgaki@php.net
Automatic comment from SVN on behalf of yohgaki
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=338290
Log: Fix bug #68892 Missing few details in online manual page.
 [2015-12-18 10:03 UTC] yohgaki@php.net
-Status: Assigned +Status: Closed
 [2020-02-07 06:07 UTC] phpdocbot@php.net
Automatic comment on behalf of yohgaki
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=042696fa642d2506944b385a0f7d6bb7029f5ab3
Log: Fix bug #68892 Missing few details in online manual page.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 17:01:29 2024 UTC