Well the whole root of this problem was a PHP bug I was trying to work around. It seems like PHP is getting buggier and buggier. This is on a new system, compiled PHP myself from 5.3
Code: Select all
# php -i | grep memory_limit
memory_limit => 128M => 128M
[root@localhost k12]# php -i | grep php.ini
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini
[root@localhost k12]# cat /usr/local/lib/php.ini | grep memory_limit
memory_limit = 1024MB;
Code: Select all
phpinfo()
PHP Version => 5.3.0
System => Linux localhost.localdomain 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64
Build Date => Aug 1 2005 20:52:21
Configure Command => './configure' '--with-mysqli=mysqlnd' '--with-mysql=mysqlnd'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini
Scan this dir for additional .ini files => (none)
Additional .ini files parsed => (none)
PHP API => 20090626
PHP Extension => 20090626
Zend Extension => 220090626
Zend Extension Build => API220090626,NTS
PHP Extension Build => API20090626,NTS
Debug Build => no
Thread Safety => disabled
Zend Memory Manager => enabled
Zend Multibyte Support => disabled
IPv6 Support => enabled
Registered PHP Streams => php, file, glob, data, http, ftp, phar
Registered Stream Socket Transports => tcp, udp, unix, udg
Registered Stream Filters => convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
Should I report it?
There is no .htaccess file because this is the command line
There is no .php scripts calling any functions, as you see I am just invoking php -i so it should only read settings from php.ini
I also can't get xdebug to load. I tried installing with pecl, I tried phpiz'ing and compiling myself, settings simply do not take affect.
The other problem I was having is when scripts finished executing memory usage and cpu went up to 100% and PHP never finished the script. It was doing this line on an exit() call. If I changed exit() to return() it happened on the ?> (closing tag) line. Since I reformatted that seems to have gone away, thankfully.