From: [EMAIL PROTECTED] Operating system: FreeBSD/sparc64 5.0-RC3 PHP version: 4.2.3 PHP Bug Type: PostgreSQL related Bug description: pg_escape_* want to allocate an insane amount of memory
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 bug report at http://bugs.php.net/?id=21635&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21635&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21635&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21635&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21635&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21635&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21635&r=support Expected behavior: http://bugs.php.net/fix.php?id=21635&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21635&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21635&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21635&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21635&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21635&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21635&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21635&r=gnused