php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61274 Incompatible with PHP 5.4
Submitted: 2012-03-04 17:33 UTC Modified: 2012-03-05 13:41 UTC
From: landeholm at gmail dot com Assigned: pierrick (profile)
Status: Closed Package: inotify (PECL)
PHP Version: 5.4.0 OS: Linux/Ubuntu
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: landeholm at gmail dot com
New email:
PHP Version: OS:

 

 [2012-03-04 17:33 UTC] landeholm at gmail dot com
Description:
------------
Fails to build:

/tmp/pear/temp/inotify/inotify.c:208:6: error: 'struct _php_core_globals' has no member named 'safe_mode'



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-03-04 22:20 UTC] landeholm at gmail dot com
Suggested fix:

--- a/ext/inotify/inotify.c
+++ b/ext/inotify/inotify.c
@@ -205,9 +205,6 @@ PHP_FUNCTION(inotify_add_watch)
                return;
        }

-       if (PG(safe_mode) && (!php_checkuid(pathname, NULL, CHECKUID_ALLOW_FILE_NOT_EXISTS))) {
-               RETURN_FALSE;
-       }
        if (php_check_open_basedir(pathname TSRMLS_CC)) {
                RETURN_FALSE;
        }
 [2012-03-05 13:41 UTC] pierrick@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: pierrick
 [2012-03-05 13:41 UTC] pierrick@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Nov 27 09:03:13 2021 UTC