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
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.
Password:
Status:
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 19:01:33 2024 UTC