Edit report at https://bugs.php.net/bug.php?id=65336&edit=1
ID: 65336 Updated by: yohg...@php.net Reported by: maja dot privat at gmx dot at Summary: Function returns boolean, although documentation says it returns only strings -Status: Open +Status: Assigned -Type: Documentation Problem +Type: Bug -Package: *General Issues +Package: PostgreSQL related Operating System: Windows 7 PHP Version: 5.4.17 -Assigned To: +Assigned To: yohgaki Block user comment: N Private report: N New Comment: Should be a bug. Previous Comments: ------------------------------------------------------------------------ [2013-07-25 16:20:05] maja dot privat at gmx dot at Description: ------------ This is the code-snipped: $limit = "5"; print_r( array(pg_escape_literal($limit) , gettype(pg_escape_literal($limit))) ); And it prints: [false,"boolean"] However, the documentation says, that "pg_escape_literal()" returns only strings. I'm not sure if it's a php-bug, or a documentation-error. Documentation-Page: http://www.php.net/manual/en/function.pg-escape-literal.php Test script: --------------- $limit = "5"; print_r( array(pg_escape_literal($limit) , gettype(pg_escape_literal($limit))) ); Expected result: ---------------- ["'5'","string"] Actual result: -------------- [false,"boolean"] ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=65336&edit=1