#21635 [Opn->Fbk]: pg_escape_* want to allocate an insane amount of memory

From: Date: Tue, 25 Feb 2003 14:20:46 +0000
Subject: #21635 [Opn->Fbk]: pg_escape_* want to allocate an insane amount of memory
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-34221@lists.php.net to get a copy of this message
ID: 21635 Updated by: yohgaki@php.net Reported By: r dot s dot a dot vandomburg at student dot utwente dot nl -Status: Open +Status: Feedback Bug Type: PostgreSQL related Operating System: FreeBSD/sparc64 5.0-CURRENT PHP Version: 4.3.0 New Comment: pg_escape_string() is _very_ simple libpq wrapper function. Problem should be elsewhere in PHP (or other modules you load) Just try to build php with simplest configuration (and do not load any module other than pgsql) see if it fixes and try to locate where is the real problem. Previous Comments: ------------------------------------------------------------------------ [2003-02-08 07:12:54] r dot s dot a dot vandomburg at student dot utwente dot nl After having upgraded to 4.3.0, the problem persisted. In the meanwhile, I have also upgraded to PostgreSQL 7.3.2 but to no avail. ------------------------------------------------------------------------ [2003-01-14 10:01:36] derick@php.net Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. ------------------------------------------------------------------------ [2003-01-14 09:49:09] r dot s dot a dot vandomburg at student dot utwente dot nl Subject says it all. Working with PostgreSQL 7.3.1. Simple script to reproduce this behavior: <?php $str = pg_escape_string("toet"); echo $str; ?> FATAL: emalloc(): Unable to allocate 36514201601 bytes Webpages containing such code take a long time to be generated on the server but leave no error message in the Apache log. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21635&edit=1

« previous php.bugs (#34221) next »