php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36001 make install fails when --enable-memory-limit used
Submitted: 2006-01-13 19:18 UTC Modified: 2006-02-08 18:28 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:0 (0.0%)
From: long+phpbugs at kestrel dot cc dot ku dot edu Assigned: cellog (profile)
Status: Closed Package: *General Issues
PHP Version: 4.4.2 OS: Tru64 4.0F
Private report: No CVE-ID: None
 [2006-01-13 19:18 UTC] long+phpbugs at kestrel dot cc dot ku dot edu
Description:
------------
When I build php with --enable-memory-limit make install fails due to hitting the memory limit.


Reproduce code:
---------------
Use:

LD_LIBRARY_PATH='/usr/local/ldap' \
CFLAGS='-O2 -std1 -ifo -taso' \
CXXFLAGS='-std1 -O2 -ifo -taso' \
CC='cc' \
CXX='cxx' \
'./configure' \
'--with-openssl' \
'--enable-bcmath' \
'--with-ndbm' \
'--with-dbm' \
'--enable-dbase' \
'--enable-filepro' \
'--enable-ftp' \
'--with-gd' \
'--with-ttf' \
'--with-java=/usr/opt/java141' \
'--with-mysql' \
'--with-oci8' \
'--with-oracle' \
'--enable-shmop' \
'--enable-sockets' \
'--enable-sysvsem' \
'--enable-sysvshm' \
'--enable-wddx' \
'--enable-dba=shared' \
'--enable-calendar' \
'--enable-exif' \
'--enable-discard-path' \
'--enable-dbx' \
'--enable-ctype' \
'--with-hyperwave' \
'--enable-mailparse' \
'--enable-mbstring' \
'--enable-mbstr-enc-trans' \
'--enable-memory-limit' \
'--with-ldap=/usr/local/ldap' \
'--with-inifile' \
'--with-flatfile' \
'--enable-dio' \
'--enable-sysvmsg' \
'--with-zlib' \
'--with-zlib-dir=/usr/local' \
'--with-jpeg-dir=/usr/local' \
'--with-png-dir=/usr/local' \
'--with-cdb=shared'

build it using 'make'.  Then run 'make install'.


Expected result:
----------------
I expect PHP to be installed.


Actual result:
--------------
# make install
Installing PHP SAPI module:       cgi
Installing PHP CGI into: /usr/local/bin/
Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20020429/
Installing PEAR environment:      /usr/local/lib/php/

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 92160 bytes) in /apps/usr/users/long/src/php-4.4.2/pear/PEAR/PackageFile/v2.php on line 962

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 87 bytes) in /apps/usr/users/long/src/php-4.4.2/pear/PEAR.php on line 767
*** Exit 255
Stop.
*** Exit 1
Stop.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-13 19:24 UTC] tony2001@php.net
Assigned to the maintainer.
 [2006-01-13 22:29 UTC] bkw at weisshuhn dot de
Supposed fix:

--- php-4.4.2.orig/pear/Makefile.frag   2005-11-05 19:19:23.000000000 +0100
+++ php-4.4.2/pear/Makefile.frag        2006-01-13 21:27:07.848122481 +0100
@@ -3,7 +3,7 @@
 peardir=$(PEAR_INSTALLDIR)

 # Skip all php.ini files altogether
-PEAR_INSTALL_FLAGS = -n -dshort_open_tag=0 -dsafe_mode=0
+PEAR_INSTALL_FLAGS = -n -dshort_open_tag=0 -dsafe_mode=0 -dmemory_limit=-1

 install-pear-packages: $(top_builddir)/sapi/cli/php
        @$(top_builddir)/sapi/cli/php $(PEAR_INSTALL_FLAGS) $(srcdir)/install-pear.php -d "$(peardir)" -b "$(bindir)" $(srcdir)/packages/*.tar
 [2006-01-13 23:42 UTC] long+phpbugs at kestrel dot cc dot ku dot edu
Yes, that appears to have worked.  Thanks.
 [2006-02-08 18:08 UTC] long+phpbugs at kestrel dot cc dot ku dot edu
Yes, php4-STABLE-200602081535 appeared to install just fine.  Thanks.
 [2006-02-08 18:28 UTC] derick@php.net
Closing then.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 05 19:01:34 2025 UTC