ID: 25722 Comment by: rep at devdomain dot com Reported By: j dot spit at uptime dot nl Status: Open Bug Type: Zend Engine 2 problem Operating System: Gentoo Linux 2.4.21 PHP Version: 5CVS-2003-10-01 (dev) New Comment:
I was just submitting this bug when your excellent pre-post script matched this similar one. I'm not using ADODB, but I'm using SMARTY, that is itself quite a huge piece of include. I'm using a late CVS version too. If I do a "service httpd restart", rendering goes back to the fast lane, but not for too long. It seems that performance degrades as PHP serves pages, but the restart remedy indicates a memory problem... Previous Comments: ------------------------------------------------------------------------ [2003-10-01 17:29:23] j dot spit at uptime dot nl Description: ------------ I'm using PHP ADODB in my application, using the latest PHP5 from cvs I get a performance problem. Consider a .php file where I include the file adodb.inc.php. Using my browser I go to my test page. Now on every page reload, I see apache consume more and more cpu, and I see that the page render time consistently increasing. This looks like some kind of memory problem to me. Please note that the AdoDB include file is over 100kb, I haven't seen this behaviour with smaller include files. I tried different Adodb versions and switched between Apache 1 & 2, to no avail. PHP5b1 does not have this problem. Reproduce code: --------------- <? $mtime = microtime(); $mtime = explode( " ", $mtime ); $start = $mtime[1] + $mtime[0]; include_once( 'adodb.inc.php' ); $mtime = microtime(); $mtime = explode( " ", $mtime ); $end = $mtime[1] + $mtime[0]; echo $end - $start; ?> Expected result: ---------------- Press refresh several times, you will see performance degrade and an execution time rise. Actual result: -------------- n/a ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25722&edit=1