#41741 [Opn-Fbk]: include/require fails for ../file

2007-06-26 Thread sniper
 ID:   41741
 Updated by:   [EMAIL PROTECTED]
 Reported By:  tobi at byte23 dot net
-Status:   Open
+Status:   Feedback
 Bug Type: *Directory/Filesystem functions
 Operating System: NetBSD 3.1.0 stable
 PHP Version:  5.2.3
 New Comment:

Please try the provided packages. We do not support any ports.



Previous Comments:


[2007-06-26 16:07:18] tobi at byte23 dot net

Yes I can include files from subdirs...

I downgraded to PHP4 again (now it works...) but that's not an
appropriate solution I think.

I think in the NetBSD pkgsrc there already is the latest PHP stable
version...



[2007-06-25 18:01:42] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi





[2007-06-25 13:42:15] michael at chunkycow dot com dot au

quoteFor example: in file /foo/subdir/alpha.php I want to include
/foo/beta.php the following error occurs:/quote

Works fine here on CentOS4.5, kubuntu Fiesty and latest debian
linuxes.
Can you include files from a subdirectory of the current one aka
/foo/subdir/subsubdir/ ?



[2007-06-19 20:25:14] tobi at byte23 dot net

NetBSD 3.1.0 not 3.0.1

sorry, it's my first bug report ;)



[2007-06-19 20:17:19] tobi at byte23 dot de

I should add the following: The errors don not only occur on self
written codes but on every Wordpress and Typo3 installation on this
server.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/41741

-- 
Edit this bug report at http://bugs.php.net/?id=41741edit=1


#41741 [Opn-Fbk]: include/require fails for ../file

2007-06-25 Thread tony2001
 ID:   41741
 Updated by:   [EMAIL PROTECTED]
 Reported By:  tobi at byte23 dot net
-Status:   Open
+Status:   Feedback
 Bug Type: *Directory/Filesystem functions
 Operating System: NetBSD 3.1.0 stable
 PHP Version:  5.2.3
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi




Previous Comments:


[2007-06-25 13:42:15] michael at chunkycow dot com dot au

quoteFor example: in file /foo/subdir/alpha.php I want to include
/foo/beta.php the following error occurs:/quote

Works fine here on CentOS4.5, kubuntu Fiesty and latest debian
linuxes.
Can you include files from a subdirectory of the current one aka
/foo/subdir/subsubdir/ ?



[2007-06-19 20:25:14] tobi at byte23 dot net

NetBSD 3.1.0 not 3.0.1

sorry, it's my first bug report ;)



[2007-06-19 20:17:19] tobi at byte23 dot de

I should add the following: The errors don not only occur on self
written codes but on every Wordpress and Typo3 installation on this
server.



[2007-06-19 20:11:38] tobi at byte23 dot net

Description:

Since the last update of my NetBSD system to PHP 5.2.3 all includes of
the type include(../file.php) are denied.

For example: in file /foo/subdir/alpha.php I want to include
/foo/beta.php the following error occurs:

---
Warning: require(../beta.php) [function.require]: failed to open
stream: Permission denied in /foo/subdir/alpha.php on line 2

Fatal error: require() [function.require]: Failed opening required
'../beta.php' (include_path='.') in /foo/subdir/alpha.php on line 2
---

Following things are checked twice: The filepermissions are OK, Apache
(and every other user) can execute and read them. Directory permissions
are aswell OK.

PHP Configuration is set to default settings. As I said everything
worked totally fine since the latest update.

Thanks to everyone!

Reproduce code:
---
in /foo/subdir/alpha.php :

require(../beta.php);

Expected result:

Should include the file...

Actual result:
--
Permission denied, whereas all permissions are set totally OK and
configuration is set to default settings.





-- 
Edit this bug report at http://bugs.php.net/?id=41741edit=1