php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71380 inotify 0.1.6 doesn't compile or run with PHP 7.0.2
Submitted: 2016-01-15 04:30 UTC Modified: 2016-03-29 02:15 UTC
From: xin-xinw at musiclifephilosophy dot com Assigned: krakjoe (profile)
Status: Closed Package: inotify (PECL)
PHP Version: 7.0.2 OS: Arch Linux
Private report: No CVE-ID: None
 [2016-01-15 04:30 UTC] xin-xinw at musiclifephilosophy dot com
Description:
------------
Running `pecl install inotify` finishes with:

/tmp/pear/temp/inotify/inotify.c:342:77: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
   add_assoc_string(event_ary, "name", (event->len > 0 ? event->name : ""), 1);
                                                                             ^
/tmp/pear/temp/inotify/inotify.c:342:3: error: ‘add_assoc_string’ undeclared (first use in this function)
   add_assoc_string(event_ary, "name", (event->len > 0 ? event->name : ""), 1);
   ^
/tmp/pear/temp/inotify/inotify.c:342:3: note: each undeclared identifier is reported only once for each function it appears in
Makefile:193: recipe for target 'inotify.lo' failed
make: *** [inotify.lo] Error 1
ERROR: `make' failed


Attempting to load the module compiled with PHP 5.6.16 fails with error:

<b>Warning</b>:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/inotify.so' - /usr/lib/php/modules/inotify.so: undefined symbol: zval_used_for_init in <b>Unknown</b> on line <b>0</b><br />


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-03-28 14:43 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: krakjoe
 [2016-03-28 14:43 UTC] krakjoe@php.net
Version 2.0.0 is available on PECL and supports PHP7.

Someone forgot to close the bug :)
 [2016-03-29 02:15 UTC] xin-xinw at musiclifephilosophy dot com
Thanks for responding! :)
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Dec 08 22:03:36 2021 UTC