Re: Segfault

From: Date: Fri, 16 Sep 2005 01:21:26 +0000
Subject: Re: Segfault
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-19022@lists.php.net to get a copy of this message
That's not where it segfaults. The function works perfectly once. If I attempt to exit / die or call that function again, it segfaults. However, I have noticed that if I do not use ZEND_REGISTER_RESOURCE the program no longer segfaults. And sorry for the comments, someone people don't write the final version of a program on their first try. ""Sara Golemon"" <pollita@php.net> wrote in message news:00f301c5ba49$455192c0$5c8be5a9@ohr.berkeley.edu... > > new_sock->bsd_socket = accept(php_sock->bsd_socket, &sa, &salen); > > > In all liklihood it's that. > > Now.... In the nicest way possible, why don't I suggest that you CLEAN UP > YOUR CODE NEXT TIME!?!?! You might have noticed that new_sock isn't alloc'd > if it wern't for all the comments and flat-out bad code you've got in there. > > Thank you for calling, next in line please. > > -Sara

« previous php.internals (#19022) next »