Bug #75013 [NEW]: Fatal error: Allowed memory size

From: Date: Mon, 31 Jul 2017 21:59:16 +0000
Subject: Bug #75013 [NEW]: Fatal error: Allowed memory size
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-210439@lists.php.net to get a copy of this message
From: ymtene at gmail dot com Operating system: CentOS Linux 7.2.1511 (Core) PHP version: 7.1.7 Package: ODBC related Bug Type: Bug Bug description:Fatal error: Allowed memory size Description: ------------ I have problems executing a sql statement from php7 to a db2 database, here are my configuration data and error: PHP version: PHP 7.1.7 (cli) (built: Jul 6 2017 12:10:28) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.1.7, Copyright (c) 1999-2017, by Zend Technologies UNIXODBC version: unixODBC-2.3.1-11.el7.x86_64 iSeriessAccess version: iSeriesAccess-7.1.0-1.0.x86_64 ERROR: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 140325171494924 bytes) in /var/www/html/test.php on line 19 I try set more memory on php.ini but not work. Also, I try with set ini_set('memory_limit', '-1'); and dont work. What can I do to make it work? Any suggestion? I have the same installation in php5.4 and it works perfect, but now I need run it on php7. --- From manual page: http://www.php.net/index --- Test script: --------------- <?php //Datos para conexión a db2// $as_username="username"; $as_password="passwd"; $bd = "ANYDB"; $as_dsn ="DRIVER=iSeries Access ODBC Driver 64-bit;SYSTEM=x.x.x.x;DBQ=$bd"; $as_conn = odbc_connect ($as_dsn, $as_username, $as_password); if (!$as_conn) { echo "No existe conexión a la base de datos."; // Error message }else{ $cadena_sql= "SELECT CAMPO FROM $db.TABLA"; $result = odbc_exec($as_conn,$cadena_sql); //Problem to execute if ($persona=odbc_fetch_array($result,'')){ ... }else{ ... } } ?> -- Edit bug report at https://bugs.php.net/bug.php?id=75013&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75013&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75013&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75013&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75013&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75013&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75013&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75013&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75013&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75013&r=support Expected behavior: https://bugs.php.net/fix.php?id=75013&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75013&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75013&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75013&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75013&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75013&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75013&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75013&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75013&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75013&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75013&r=mysqlcfg

« previous php.bugs (#210439) next »