php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38136 Order of ./configure options can result in --enable-memory-limit being ignored
Submitted: 2006-07-19 01:11 UTC Modified: 2006-07-19 15:30 UTC
From: twells at smarterliving dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.4.2 OS: RedHat 9
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: twells at smarterliving dot com
New email:
PHP Version: OS:

 

 [2006-07-19 01:11 UTC] twells at smarterliving dot com
Description:
------------
The order of ./configure arguments can result in --enable-memory-limit functionality not being built into the binary.



Reproduce code:
---------------
1) Build PHP with: ./configure  --with-mysql=/usr --with-curl --with-gettext --with-mcrypt --with-dom --enable-inline --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-zlib-dir=/usr/lib --with-openssl --enable-ftp --with-apache=../apache_1.3.34 --enable-memcache --enable-mbstring --enable-memory-limit

2) Observe in the configure output that "checking whether to enable a memory limit... yes"

3) Install, make sure memory_limit is set in php.ini and restart apache and load phpinfo(). Observe there is no memory_limit value in the PHP Core output however --enable-memory-limit is listed in the Configure Command output. Test calls to memory_get_usage() will result in a PHP Fatal call to an undefined function.

4) Rebuild PHP with: ./configure  --with-mysql=/usr --with-curl --with-gettext --with-mcrypt --with-dom --enable-inline --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-zlib-dir=/usr/lib --with-openssl --enable-ftp --enable-memory-limit --enable-memcache --enable-mbstring --with-apache=../apache_1.3.34

5) Again in the config output you should see: "checking whether to enable a memory limit... yes"

6) Install, restart apache, and load phpinfo(). memory_limit is now visible in the PHP Core output and functions like memory_get_usage() work again


Expected result:
----------------
Both configure lines should result in an identical PHP build

Actual result:
--------------
--enable-memory-limit functionality is missing from the build.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-07-19 06:23 UTC] tony2001@php.net
Please try `make clean` first.
 [2006-07-19 13:34 UTC] twells at smarterliving dot com
Sorry I didn't make it clear when listing the reproduction steps. We did do make cleans and make distcleans in between builds when we were trying to diagnose this problem.

Thanks
 [2006-07-19 13:56 UTC] sniper@php.net
Did you by any chance try with fresh sources and make sure you don't generate the configure yourself? (don't do "make distclean" !!)

 [2006-07-19 14:46 UTC] twells at smarterliving dot com
Closing this bug report. Rebuilding from a fresh source unpack shows it to not be reproducible. Sorry for the trouble. Thanks
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 19 00:00:03 2025 UTC