php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57087 PHP seg faults if event_init is not called before event_dispatch
Submitted: 2006-06-14 00:44 UTC Modified: 2013-07-16 06:17 UTC
From: e at osterman dot com Assigned:
Status: Wont fix Package: event (PECL)
PHP Version: 5.1.2 OS: Debian / Redhat
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: e at osterman dot com
New email:
PHP Version: OS:

 

 [2006-06-14 00:44 UTC] e at osterman dot com
Description:
------------
PHP seg faults if the user accidentally forgets to call event_init before calling the other scheduling functions.

Tested on:  PHP 5.1.2-1+b1 , PHP 5.1.4

Reproduce code:
---------------
<?php

dl('event.so');

// If you comment this next line out, PHP seg faults. 
//event_init();

event_dispatch( EVLOOP_NONBLOCK );
print "all done.\n";


?>


Expected result:
----------------
all done.

Actual result:
--------------
Segmentation fault (core dumped)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-11 20:07 UTC] e at osterman dot com
Fixed. Here's a patch: http://www.pecl.php.net/bugs/bug.php?id=7892
 [2013-07-16 06:17 UTC] osmanov@php.net
-Status: Open +Status: Wont fix
 [2013-07-16 06:17 UTC] osmanov@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Jan 18 05:01:22 2020 UTC