ID: 38136 Updated by: [EMAIL PROTECTED] Reported By: twells at smarterliving dot com -Status: Open +Status: Feedback -Bug Type: *Compile Issues +Bug Type: Compile Failure Operating System: RedHat 9 PHP Version: 4.4.2 New Comment:
Did you by any chance try with fresh sources and make sure you don't generate the configure yourself? (don't do "make distclean" !!) Previous Comments: ------------------------------------------------------------------------ [2006-07-19 13:34:34] 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 06:23:20] [EMAIL PROTECTED] Please try `make clean` first. ------------------------------------------------------------------------ [2006-07-19 01:11:57] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38136&edit=1