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"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> >  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

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to