running out of memory just doing "new DB_mysql"?

Codes here !

Moderators: egami, macek, gesf

Post Reply
abatie
New php-forum User
New php-forum User
Posts: 1
Joined: Mon Apr 23, 2018 5:46 pm

Mon Apr 23, 2018 5:51 pm

CentOS Linux release 7.4.1708 (Core)

Code: Select all

<webmail7.peak.org> [790] # yum list installed | grep mysql
php-mysql.x86_64                        5.4.45-56.el7.art              @atomic  
<webmail7.peak.org> [791] # yum list installed | grep php
php.x86_64                              5.4.45-56.el7.art              @atomic  
php-cli.x86_64                          5.4.45-56.el7.art              @atomic  
php-common.x86_64                       5.4.45-56.el7.art              @atomic  
php-mysql.x86_64                        5.4.45-56.el7.art              @atomic  
php-pdo.x86_64                          5.4.45-56.el7.art              @atomic  
php-pear.noarch                         1:1.9.4-21.el7                 @base    
php-process.x86_64                      5.4.45-56.el7.art              @atomic  
php-xml.x86_64                          5.4.45-56.el7.art              @atomic  

<webmail7.peak.org> [795] # cat dbt.php
<?php
include_once('DB.php');
include_once "DB/mysql.php";
print "new mysql\n";
$db = new DB_mysql;
print "done\n";
exit;
?>
<webmail7.peak.org> [796] # php dbt.php
new mysql
PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 130968 bytes) in /usr/share/pear/PEAR.php on line 150

Post Reply