[PHP] wrong open_basedir warning

2013-03-27 Thread Markus Falb
in my test.php I put

file_exists('/usr/share/wordpress/wp-config.php');

this throws an error

Warning: file_exists(): open_basedir restriction in effect.
File(/usr/share/wordpress/wp-config.php) is not within the allowed
path(s): (/var/www/blog:/usr/share/wordpress) in
/var/www/blog/www/test.php on line 2

The configuration of my apache virtual host says

php_admin_value open_basedir '/var/www/blog:/usr/share/wordpress'

What is going on?
/usr/share/wordpress/wp-config.php is definitily within
/usr/share/wordpress, isnt it?
-- 
Markus Falb

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: wrong open_basedir warning

2013-03-27 Thread Markus Falb
On 27.3.2013 17:00, Markus Falb wrote:

> Warning: file_exists(): open_basedir restriction in effect.
> File(/usr/share/wordpress/wp-config.php) is not within the allowed
> path(s): (/var/www/blog:/usr/share/wordpress) in
> /var/www/blog/www/test.php on line 2

I found it out.

/usr/share/wordpress/wp-config.php
is a symlink to /etc/wordpress/wp-config and /etc/wordpress is outside
the open_basedirs.
-- 
Markus Falb

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] php fopen https error

2013-09-25 Thread Markus Falb
With RHEL/CentOS 5 php I get an SSL Error
RHEL/CentOS 5 php is at 5.1.6 with security fixes backported.

https://maps.google.com";, "r");
 $contents = stream_get_contents($handle);
 fclose($handle);
?>

will result in something like

Warning: stream_get_contents(): SSL: fatal protocol error in bla.php on
line 3

Some https pages do not raise this error, e.g. https://www.redhat.com is
fine
What is wrong? How to debug? How to resolve? How to mitigate?

Thanks
-- 
Markus Falb

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php fopen https error

2013-09-25 Thread Markus Falb
On 25.9.2013 17:12, Shawn McKenzie wrote:
> Just as I thought:
> 
> 5.2.0
> Fixed bug #39039 SSL: fatal protocol error when fetching HTTPS from servers
> running Google web server). (Ilia)

Thanks, but ...
I am not sure how what I am supposed to do with this information.

#39039 says it is a bug and it was fixed.
How do I proceed to understand this bug?
Where can I find the appropiate patch?
Where is this bug discussed?

I am sorry if I strain it (too much?) but the link to this bug does not
give a solution to the problem and it does not help to understand the
problem.

I understand that somewhere in cvs there is the solution, but I can not
see an obvious way to get it from the information in #39039
-- 
Markus Falb

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php fopen https error

2013-09-25 Thread Markus Falb
On 25.9.2013 17:03, Shawn McKenzie wrote:
> I believe this was a bug, is only a warning that may be suppressed and may
> have been fixed in 5.2.0.  Are you aware that PHP is at 5.5.4 and that
> 5.1.6 is over 7 years old?

Please understand that some Distributions do the "only backport security
stuff" thing, e.g. RedHat is supporting for 10 years nowadays.
I do not complain, I just try to understand the issue.

Thanks
-- 
Markus Falb

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php