ID:               25722
 Updated by:       [EMAIL PROTECTED]
 Reported By:      j dot spit at uptime dot nl
-Status:           Open
+Status:           Closed
 Bug Type:         Zend Engine 2 problem
 Operating System: Gentoo Linux 2.4.21
 PHP Version:      5CVS-2003-10-01 (dev)
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2003-10-17 16:59:39] rep at devdomain dot com

Update:

I've compiled today's snapshot and it appears that the slowdown is
gone.

------------------------------------------------------------------------

[2003-10-07 18:22:02] rep at devdomain dot com

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...

------------------------------------------------------------------------

[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

Reply via email to