From:             j dot spit at uptime dot nl
Operating system: Gentoo Linux 2.4.21
PHP version:      5CVS-2003-10-01 (dev)
PHP Bug Type:     Performance problem
Bug description:  Performance degrades on every page request when including a large 
.php file

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 bug report at http://bugs.php.net/?id=25722&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25722&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25722&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25722&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25722&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25722&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25722&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25722&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25722&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25722&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25722&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25722&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25722&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25722&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25722&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25722&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25722&r=float

Reply via email to