[php-maint] Bug#399179: php5-cli: setting higher memory limit in php.ini doesn't affect php

Domas Jokubauskis domasj at gmail.com
Sat Nov 18 11:44:21 CET 2006


Package: php5-cli
Version: 5.2.0-4
Severity: important

I've set "memory_limit = 64M" in /etc/php5/cli/php.ini but when parsing a script
php doesn't respect the new setting.
I've added "var_dump(ini_get('memory_limit'));" line to the extractor.php script
to indicate if php gets the setting.
Before changing the config:
	php extractor.php
	PHP Warning:  Module 'PDO' already loaded in Unknown on line 0
	string(3) "16M"
	**********
	Fatal error: Allowed memory size of 16777216 bytes exhausted (tried
to allocate 64 bytes) in
/home/domas/Desktop/drupal-cvs/extractor.php on line 98

After:
	php extractor.php
	PHP Warning:  Module 'PDO' already loaded in Unknown on line 0
	string(3) "64M"
	**********
	Fatal error: Allowed memory size of 16777216 bytes exhausted (tried
to allocate 64 bytes) in
/home/domas/Desktop/drupal-cvs/extractor.php on line 98

As you see, although php gets the setting, it doesn't use it while it
executes a script.
I have encountered the problem with the version 5.2.0-3 and thought
that the update would fix the
unwanted behaviour. When it updated I have purged everything related
to php and reinstalled only
php5-cli and php5-common.


-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-2-amd64
Locale: LANG=lt_LT.UTF-8, LC_CTYPE=lt_LT.UTF-8 (charmap=UTF-8)

Versions of packages php5-cli depends on:
ii  libbz2-1 1.0.3-6                         high-quality block-sorting file co
ii  libc6    2.3.6.ds1-8                     GNU C Library: Shared libraries
ii  libcomer 1.39+1.40-WIP-2006.11.14+dfsg-1 common error description library
ii  libdb4.4 4.4.20-8                        Berkeley v4.4 Database Libraries [
ii  libkrb53 1.4.4-4                         MIT Kerberos runtime libraries
ii  libmagic 4.17-4                          File type determination library us
ii  libncurs 5.5-5                           Shared libraries for terminal hand
ii  libpcre3 6.7-1                           Perl 5 Compatible Regular Expressi
ii  libssl0. 0.9.8c-3                        SSL shared libraries
ii  libxml2  2.6.27.dfsg-1                   GNOME XML library
ii  mime-sup 3.37-1                          MIME files 'mime.types' & 'mailcap
ii  php5-com 5.2.0-4                         Common files for packages built fr
ii  ucf      2.0017                          Update Configuration File: preserv
ii  zlib1g   1:1.2.3-13                      compression library - runtime

php5-cli recommends no packages.

-- no debconf information




More information about the pkg-php-maint mailing list