NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[Resolved] PHPed 5 freezes.
Veteran

Joined: 30 Nov 2006
Posts: 186
Reply with quote
HI.

I have seen this 3 times now.

When editing the source, PHPed suddenly frezes., and after a few minutes the program gets terminated.

It dislpayes an Error : Out of memory
I guess there is a memory leak.

I have been unable to discover a pattern yet.


Last edited by hgr on Sat Apr 28, 2007 10:42 am; edited 1 time in total
View user's profileFind all posts by hgrSend private message
Veteran

Joined: 30 Nov 2006
Posts: 186
Reply with quote
Ok. It is consistent now.

I have created a class

class bExceptionBackendDev extends Exception {} in a file bExceptions.php

This file is included in another PHP file, and in that I have this code.

if (!property_exists($dataSource,$fieldName))
throw new bExceptio..

The code complete kicks in and displayes a list of classes and I select the bExceptionBackendDev class

The code then changes to

if (!property_exists($dataSource,$fieldName))
throw new bExceptionBackendDev::

I then try to change the :: to (), but the second I hit a cursor key, PHPed starts to eat memory, and frezes.

I have added spl.php to the code insight in order to get PHPed to be able to code complete to work on core PHP classes, and I thought that it was messing code completion up and giving the memory leak, I then removed that, but the situation was the same.

There is a memory leak with auto completion. Confused
View user's profileFind all posts by hgrSend private message
Veteran

Joined: 30 Nov 2006
Posts: 186
Reply with quote
FOUND THE PROBLEM.

IT was me.

I was tired yesteday and wrote

class bExceptionBackendDev extends bExceptionBackendDev {}

In stead of :

class bExceptionBackendDev extends Exception {}

That send autocompleteion into a indef. loop.

My mistake..

This is actually an argument for the code analyze (the compile feature) because that tool could find such a situation and warn you if a class extends itself.
View user's profileFind all posts by hgrSend private message
[Resolved] PHPed 5 freezes.
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic