Re: PHP causing seg fault
| From: | Richard Lynch | Date: | Thu, 12 Oct 2006 16:00:28 +0000 |
| Subject: | Re: PHP causing seg fault | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-243027@lists.php.net to get a copy of this message | ||
On Thu, October 12, 2006 3:44 am, Glenn Richmond wrote:
> I'm attempting to run a SugarCRM variant that uses SOAP to access
> information from the database. The code is causing a seg fault when
> executing a particular line of code. The code executes properly until
> it
> calls a generic function in the parent class that causes a seg fault
> on
> the return command. The line of code is:
>
> return $this;
>
> I've found this to be a problem in PHP version 5.1.4 and 5.2.0rc4. Is
> this statement illegal in PHP5? When I set a memory limit for the
> script, the error changes to indicating that it has exceeded its
> memory
> allocation, so it seems to be allocating memory over and over.
>
> Note that this code runs fine on most other combinations of functions
> calling this same parent method. Any suggestions are appreciated.
Are you sure you are not causing an infinite loop or a circular data
reference that PHP is attempting to iterate through?
It sure *sounds* like that might be the case, from the symptoms
presented.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?