|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64648 eio_mkdir hangs and blocks script
Submitted: 2013-04-14 02:23 UTC Modified: 2013-04-14 12:02 UTC
From: imprec at gmail dot com Assigned:
Status: Wont fix Package: eio (PECL)
PHP Version: 5.4.13 OS: OSX 10.8.3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: imprec at gmail dot com
New email:
PHP Version: OS:


 [2013-04-14 02:23 UTC] imprec at gmail dot com
When running eio_mkdir code example, the directory is created but the eio_mkdir 
function hangs and blocks the process.

I'm using an SSD.

Note : I'm encountering this issue when running test suite of react libeio 
implementation, see

Some tests on eio_open eio_read produce some "bus error" segmentation fault.

Test script:
$temp_dirname = "eio-temp-dir";

/* Is called when eio_mkdir() finishes */
function my_mkdir_callback($data, $result) {
 if ($result == 0 && is_dir($temp_dirname)
   && !is_readable($temp_dirname)
   && is_writable($temp_dirname)) {
  echo "eio_mkdir_ok";

 // Remove directory
    if (file_exists($data))

// Create directory with access mode 0300
eio_mkdir($temp_dirname, 0300, EIO_PRI_DEFAULT, "my_mkdir_callback", $temp_dirname);


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-04-14 02:25 UTC] imprec at gmail dot com
-PHP Version: Irrelevant +PHP Version: 5.4.13
 [2013-04-14 02:25 UTC] imprec at gmail dot com
Some informations about the system :

PHP 5.4.13 (cli) (built: Apr 13 2013 20:13:48) (DEBUG)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
    with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans


eio support => enabled
Debug support => enabled
Version => 1.2.1
 [2013-04-14 02:42 UTC] imprec at gmail dot com
It appears that this problem occurs when php-uv is enabled 
 [2013-04-14 12:02 UTC]
-Status: Open +Status: Wont fix
 [2013-04-14 12:02 UTC]
Can't reproduce(without "php-uv"). You should have omitted `global
$temp_dirname;' within the function.

Furthermore, php-uv extension conflicts with eio. I hadn't put such a
dependency in the eio code, since php-uv is still not an official PECL
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Mar 03 10:01:29 2024 UTC