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

From: Date: Sat, 08 Feb 2003 13:12:54 +0000
Subject: #21635 [Bgs->Opn]: pg_escape_* want to allocate an insane amount of memory
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-32500@lists.php.net to get a copy of this message
ID: 21635 User updated by: r.s.a.vandomburg@student.utwente.nl Reported By: r.s.a.vandomburg@student.utwente.nl -Status: Bogus +Status: Open Bug Type: PostgreSQL related -Operating System: FreeBSD/sparc64 5.0-RC3 +Operating System: FreeBSD/sparc64 5.0-CURRENT -PHP Version: 4.2.3 +PHP Version: 4.3.0 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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.s.a.vandomburg@student.utwente.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 (#32500) next »