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
 [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

Pull Requests

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 Oct 31 23:01:28 2024 UTC