| Ash www.ashleysheridan.co.uk |
Sunday, September 7, 2008
Re: [PHP] php image and javascript include
[PHP-CVS] cvs: php-src(PHP_5_3) / NEWS
Modified files: (Branch: PHP_5_3)
/php-src NEWS
Log:
- New entry
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.965.2.309&r2=1.2027.2.547.2.965.2.310&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.965.2.309 php-src/NEWS:1.2027.2.547.2.965.2.310
--- php-src/NEWS:1.2027.2.547.2.965.2.309 Sun Sep 7 13:15:59 2008
+++ php-src/NEWS Sun Sep 7 23:08:20 2008
@@ -1,6 +1,8 @@
PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 200?, PHP 5.3.0 Alpha 3
+- Changed Soap methods error level, now it is no longer E_ERROR. (Felipe)
+
- Fixed bug #45911 (Cannot disable ext/hash). (Arnaud)
02 Sep 2008, PHP 5.3.0 Alpha 2
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) /ext/mcrypt mcrypt.c /ext/mcrypt/tests bug46010.phpt mcrypt_ecb.phpt
Added files: (Branch: PHP_5_2)
/php-src/ext/mcrypt/tests bug46010.phpt
Modified files:
/php-src/ext/mcrypt mcrypt.c
/php-src/ext/mcrypt/tests mcrypt_ecb.phpt
Log:
- MFH: Fixed bug #46010 (warnings incorrectly generated for iv in ecb mode)
http://cvs.php.net/viewvc.cgi/php-src/ext/mcrypt/mcrypt.c?r1=1.91.2.3.2.12&r2=1.91.2.3.2.13&diff_format=u
Index: php-src/ext/mcrypt/mcrypt.c
diff -u php-src/ext/mcrypt/mcrypt.c:1.91.2.3.2.12 php-src/ext/mcrypt/mcrypt.c:1.91.2.3.2.13
--- php-src/ext/mcrypt/mcrypt.c:1.91.2.3.2.12 Mon Dec 31 07:20:08 2007
+++ php-src/ext/mcrypt/mcrypt.c Sun Sep 7 23:00:31 2008
@@ -16,7 +16,7 @@
| Derick Rethans <derick@derickrethans.nl> |
+----------------------------------------------------------------------+
*/
-/* $Id: mcrypt.c,v 1.91.2.3.2.12 2007/12/31 07:20:08 sebastian Exp $ */
+/* $Id: mcrypt.c,v 1.91.2.3.2.13 2008/09/07 23:00:31 felipe Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -1041,15 +1041,17 @@
/* Check IV */
iv_s = NULL;
iv_size = mcrypt_enc_get_iv_size (td);
- if (argc == 5) {
- if (iv_size != Z_STRLEN_PP(iv)) {
- php_error_docref(NULL TSRMLS_CC, E_WARNING, MCRYPT_IV_WRONG_SIZE);
- } else {
- iv_s = emalloc(iv_size + 1);
- memcpy(iv_s, Z_STRVAL_PP(iv), iv_size);
- }
- } else if (argc == 4) {
- if (iv_size != 0) {
+
+ /* IV is required */
+ if (mcrypt_enc_mode_has_iv(td) == 1) {
+ if (argc == 5) {
+ if (iv_size != Z_STRLEN_PP(iv)) {
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, MCRYPT_IV_WRONG_SIZE);
+ } else {
+ iv_s = emalloc(iv_size + 1);
+ memcpy(iv_s, Z_STRVAL_PP(iv), iv_size);
+ }
+ } else if (argc == 4) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Attempt to use an empty IV, which is NOT recommend");
iv_s = emalloc(iv_size + 1);
memset(iv_s, 0, iv_size + 1);
http://cvs.php.net/viewvc.cgi/php-src/ext/mcrypt/tests/mcrypt_ecb.phpt?r1=1.1.4.2&r2=1.1.4.3&diff_format=u
Index: php-src/ext/mcrypt/tests/mcrypt_ecb.phpt
diff -u php-src/ext/mcrypt/tests/mcrypt_ecb.phpt:1.1.4.2 php-src/ext/mcrypt/tests/mcrypt_ecb.phpt:1.1.4.3
--- php-src/ext/mcrypt/tests/mcrypt_ecb.phpt:1.1.4.2 Sat May 17 23:31:31 2008
+++ php-src/ext/mcrypt/tests/mcrypt_ecb.phpt Sun Sep 7 23:00:31 2008
@@ -14,10 +14,10 @@
// we have to trim as AES rounds the blocks and decrypt doesnt detect that
echo trim(mcrypt_ecb($cipher, $key, $enc_data, MCRYPT_DECRYPT, $iv)) . "\n";
-// a warning must be issued if we don't use a IV on a AES cipher, that usually requires an IV
+// a warning not must be issued if we don't use a IV on a AES cipher, that not requires an IV
mcrypt_ecb($cipher, $key, $enc_data, MCRYPT_DECRYPT);
--EXPECTF--
PHP Testfest 2008
-Warning: mcrypt_ecb(): Attempt to use an empty IV, which is NOT recommend in %s on line %d
+
http://cvs.php.net/viewvc.cgi/php-src/ext/mcrypt/tests/bug46010.phpt?view=markup&rev=1.1
Index: php-src/ext/mcrypt/tests/bug46010.phpt
+++ php-src/ext/mcrypt/tests/bug46010.phpt
--TEST---
Bug #46010 (warnings incorrectly generated for iv in ecb mode)
--FILE--
<?php
var_dump(bin2hex(mcrypt_encrypt(MCRYPT_TRIPLEDES, "key", "data", MCRYPT_MODE_ECB)));
var_dump(bin2hex(mcrypt_encrypt(MCRYPT_TRIPLEDES, "key", "data", MCRYPT_MODE_ECB, "a")));
var_dump(bin2hex(mcrypt_encrypt(MCRYPT_TRIPLEDES, "key", "data", MCRYPT_MODE_ECB, "12345678")));
?>
--EXPECTF--
string(16) "372eeb4a524b8d31"
string(16) "372eeb4a524b8d31"
string(16) "372eeb4a524b8d31"
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_3) /ext/mcrypt mcrypt.c /ext/mcrypt/tests bug46010.phpt
Added files: (Branch: PHP_5_3)
/php-src/ext/mcrypt/tests bug46010.phpt
Modified files:
/php-src/ext/mcrypt mcrypt.c
Log:
- MFH: Fixed bug #46010 (warnings incorrectly generated for iv in ecb mode)
http://cvs.php.net/viewvc.cgi/php-src/ext/mcrypt/mcrypt.c?r1=1.91.2.3.2.11.2.11&r2=1.91.2.3.2.11.2.12&diff_format=u
Index: php-src/ext/mcrypt/mcrypt.c
diff -u php-src/ext/mcrypt/mcrypt.c:1.91.2.3.2.11.2.11 php-src/ext/mcrypt/mcrypt.c:1.91.2.3.2.11.2.12
--- php-src/ext/mcrypt/mcrypt.c:1.91.2.3.2.11.2.11 Sun Aug 10 05:38:07 2008
+++ php-src/ext/mcrypt/mcrypt.c Sun Sep 7 22:57:37 2008
@@ -16,7 +16,7 @@
| Derick Rethans <derick@derickrethans.nl> |
+----------------------------------------------------------------------+
*/
-/* $Id: mcrypt.c,v 1.91.2.3.2.11.2.11 2008/08/10 05:38:07 felipe Exp $ */
+/* $Id: mcrypt.c,v 1.91.2.3.2.11.2.12 2008/09/07 22:57:37 felipe Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -1196,7 +1196,7 @@
{
char *cipher_dir_string;
char *module_dir_string;
- int block_size, max_key_length, use_key_length, i, count, iv_size, req_iv;
+ int block_size, max_key_length, use_key_length, i, count, iv_size;
unsigned long int data_size;
int *key_length_sizes;
char *key_s = NULL, *iv_s;
@@ -1244,16 +1244,17 @@
/* Check IV */
iv_s = NULL;
iv_size = mcrypt_enc_get_iv_size (td);
- req_iv = mcrypt_enc_mode_has_iv(td);
- if (argc == 5) {
- if (iv_size != iv_len) {
- php_error_docref(NULL TSRMLS_CC, E_WARNING, MCRYPT_IV_WRONG_SIZE);
- } else {
- iv_s = emalloc(iv_size + 1);
- memcpy(iv_s, iv, iv_size);
- }
- } else if (argc == 4) {
- if (req_iv == 1) {
+
+ /* IV is required */
+ if (mcrypt_enc_mode_has_iv(td) == 1) {
+ if (argc == 5) {
+ if (iv_size != iv_len) {
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, MCRYPT_IV_WRONG_SIZE);
+ } else {
+ iv_s = emalloc(iv_size + 1);
+ memcpy(iv_s, iv, iv_size);
+ }
+ } else if (argc == 4) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Attempt to use an empty IV, which is NOT recommend");
iv_s = emalloc(iv_size + 1);
memset(iv_s, 0, iv_size + 1);
http://cvs.php.net/viewvc.cgi/php-src/ext/mcrypt/tests/bug46010.phpt?view=markup&rev=1.1
Index: php-src/ext/mcrypt/tests/bug46010.phpt
+++ php-src/ext/mcrypt/tests/bug46010.phpt
--TEST---
Bug #46010 (warnings incorrectly generated for iv in ecb mode)
--FILE--
<?php
var_dump(bin2hex(mcrypt_encrypt(MCRYPT_TRIPLEDES, "key", "data", MCRYPT_MODE_ECB)));
var_dump(bin2hex(mcrypt_encrypt(MCRYPT_TRIPLEDES, "key", "data", MCRYPT_MODE_ECB, "a")));
var_dump(bin2hex(mcrypt_encrypt(MCRYPT_TRIPLEDES, "key", "data", MCRYPT_MODE_ECB, "12345678")));
?>
--EXPECTF--
string(16) "372eeb4a524b8d31"
string(16) "372eeb4a524b8d31"
string(16) "372eeb4a524b8d31"
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src /ext/mcrypt mcrypt.c /ext/mcrypt/tests bug46010.phpt
Added files:
/php-src/ext/mcrypt/tests bug46010.phpt
Modified files:
/php-src/ext/mcrypt mcrypt.c
Log:
- Fixed bug #46010 (warnings incorrectly generated for iv in ecb mode)
http://cvs.php.net/viewvc.cgi/php-src/ext/mcrypt/mcrypt.c?r1=1.114&r2=1.115&diff_format=u
Index: php-src/ext/mcrypt/mcrypt.c
diff -u php-src/ext/mcrypt/mcrypt.c:1.114 php-src/ext/mcrypt/mcrypt.c:1.115
--- php-src/ext/mcrypt/mcrypt.c:1.114 Wed Jul 16 08:00:43 2008
+++ php-src/ext/mcrypt/mcrypt.c Sun Sep 7 22:53:20 2008
@@ -16,7 +16,7 @@
| Derick Rethans <derick@derickrethans.nl> |
+----------------------------------------------------------------------+
*/
-/* $Id: mcrypt.c,v 1.114 2008/07/16 08:00:43 tony2001 Exp $ */
+/* $Id: mcrypt.c,v 1.115 2008/09/07 22:53:20 felipe Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -1276,7 +1276,7 @@
{
MCRYPT td;
char *cipher_dir_string, *module_dir_string, *key_copy, *iv_copy;
- int i, status = SUCCESS, count, *key_sizes, key_size, iv_size, block_size, iv_req;
+ int i, status = SUCCESS, count, *key_sizes, key_size, iv_size, block_size;
MCRYPT_GET_INI
@@ -1314,20 +1314,20 @@
mcrypt_free(key_sizes);
iv_size = mcrypt_enc_get_iv_size(td);
- iv_req = mcrypt_enc_mode_has_iv(td);
- if (iv_len) {
- if (iv_len == iv_size) {
- iv_copy = estrndup(iv_str, iv_len);
+ /* IV is required */
+ if (mcrypt_enc_mode_has_iv(td) == 1) {
+ if (iv_len) {
+ if (iv_len == iv_size) {
+ iv_copy = estrndup(iv_str, iv_len);
+ } else {
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, MCRYPT_IV_WRONG_SIZE);
+ iv_copy = ecalloc(1, iv_size);
+ memcpy(iv_copy, iv_str, MIN(iv_len, iv_size));
+ }
} else {
- php_error_docref(NULL TSRMLS_CC, E_WARNING, MCRYPT_IV_WRONG_SIZE);
- iv_copy = ecalloc(1, iv_size);
- memcpy(iv_copy, iv_str, MIN(iv_len, iv_size));
- }
- } else {
- if (iv_req) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Attempt to use an empty IV, which is NOT recommended");
+ iv_copy = ecalloc(1, iv_size);
}
- iv_copy = ecalloc(1, iv_size);
}
if (mcrypt_enc_is_block_mode(td) == 1) {
http://cvs.php.net/viewvc.cgi/php-src/ext/mcrypt/tests/bug46010.phpt?view=markup&rev=1.1
Index: php-src/ext/mcrypt/tests/bug46010.phpt
+++ php-src/ext/mcrypt/tests/bug46010.phpt
--TEST---
Bug #46010 (warnings incorrectly generated for iv in ecb mode)
--FILE--
<?php
var_dump(bin2hex(mcrypt_encrypt(MCRYPT_TRIPLEDES, "key", "data", MCRYPT_MODE_ECB)));
var_dump(bin2hex(mcrypt_encrypt(MCRYPT_TRIPLEDES, "key", "data", MCRYPT_MODE_ECB, "a")));
var_dump(bin2hex(mcrypt_encrypt(MCRYPT_TRIPLEDES, "key", "data", MCRYPT_MODE_ECB, "12345678")));
?>
--EXPECTF--
string(16) "372eeb4a524b8d31"
string(16) "372eeb4a524b8d31"
string(16) "372eeb4a524b8d31"
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) /tests/security open_basedir_copy.phpt open_basedir_dir.phpt open_basedir_error_log_variation.phpt open_basedir_file.phpt open_basedir_file_get_contents.phpt open_basedir_file_put_contents.phpt open_basedir_fopen.phpt open_basedir_opendir.phpt open_basedir_scandir.phpt
Index: php-src/tests/security/open_basedir_copy.phpt
diff -u php-src/tests/security/open_basedir_copy.phpt:1.1.2.1 php-src/tests/security/open_basedir_copy.phpt:1.1.2.2
--- php-src/tests/security/open_basedir_copy.phpt:1.1.2.1 Fri May 9 08:35:58 2008
+++ php-src/tests/security/open_basedir_copy.phpt Sun Sep 7 22:35:15 2008
@@ -36,42 +36,42 @@
Warning: copy(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on line %d
-Warning: copy(../bad): failed to open stream: Operation not permitted in %s on line %d
+Warning: copy(../bad): failed to open stream: %s in %s on line %d
bool(false)
Warning: copy(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: copy(../bad/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: copy(../bad/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
Warning: copy(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.) in %s on line %d
-Warning: copy(..): failed to open stream: Operation not permitted in %s on line %d
+Warning: copy(..): failed to open stream: %s in %s on line %d
bool(false)
Warning: copy(): open_basedir restriction in effect. File(../) is not within the allowed path(s): (.) in %s on line %d
-Warning: copy(../): failed to open stream: Operation not permitted in %s on line %d
+Warning: copy(../): failed to open stream: %s in %s on line %d
bool(false)
Warning: copy(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.) in %s on line %d
-Warning: copy(/): failed to open stream: Operation not permitted in %s on line %d
+Warning: copy(/): failed to open stream: %s in %s on line %d
bool(false)
Warning: copy(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on line %d
-Warning: copy(../bad/.): failed to open stream: Operation not permitted in %s on line %d
+Warning: copy(../bad/.): failed to open stream: %s in %s on line %d
bool(false)
Warning: copy(): open_basedir restriction in effect. File(../bad/./bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: copy(../bad/./bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: copy(../bad/./bad.txt): failed to open stream: %s in %s on line %d
bool(false)
Warning: copy(): open_basedir restriction in effect. File(./../.) is not within the allowed path(s): (.) in %s on line %d
-Warning: copy(./../.): failed to open stream: Operation not permitted in %s on line %d
+Warning: copy(./../.): failed to open stream: %s in %s on line %d
bool(false)
bool(true)
bool(true)
http://cvs.php.net/viewvc.cgi/php-src/tests/security/open_basedir_dir.phpt?r1=1.1.2.1&r2=1.1.2.2&diff_format=u
Index: php-src/tests/security/open_basedir_dir.phpt
diff -u php-src/tests/security/open_basedir_dir.phpt:1.1.2.1 php-src/tests/security/open_basedir_dir.phpt:1.1.2.2
--- php-src/tests/security/open_basedir_dir.phpt:1.1.2.1 Fri May 9 08:35:58 2008
+++ php-src/tests/security/open_basedir_dir.phpt Sun Sep 7 22:35:15 2008
@@ -29,42 +29,42 @@
Warning: dir(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on line %d
-Warning: dir(../bad): failed to open dir: Operation not permitted in %s on line %d
+Warning: dir(../bad): failed to open dir: %s in %s on line %d
bool(false)
Warning: dir(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: dir(../bad/bad.txt): failed to open dir: Operation not permitted in %s on line %d
+Warning: dir(../bad/bad.txt): failed to open dir: %s in %s on line %d
bool(false)
Warning: dir(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.) in %s on line %d
-Warning: dir(..): failed to open dir: Operation not permitted in %s on line %d
+Warning: dir(..): failed to open dir: %s in %s on line %d
bool(false)
Warning: dir(): open_basedir restriction in effect. File(../) is not within the allowed path(s): (.) in %s on line %d
-Warning: dir(../): failed to open dir: Operation not permitted in %s on line %d
+Warning: dir(../): failed to open dir: %s in %s on line %d
bool(false)
Warning: dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.) in %s on line %d
-Warning: dir(/): failed to open dir: Operation not permitted in %s on line %d
+Warning: dir(/): failed to open dir: %s in %s on line %d
bool(false)
Warning: dir(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on line %d
-Warning: dir(../bad/.): failed to open dir: Operation not permitted in %s on line %d
+Warning: dir(../bad/.): failed to open dir: %s in %s on line %d
bool(false)
Warning: dir(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: dir(%s/test/bad/bad.txt): failed to open dir: Operation not permitted in %s on line %d
+Warning: dir(%s/test/bad/bad.txt): failed to open dir: %s in %s on line %d
bool(false)
Warning: dir(): open_basedir restriction in effect. File(%s/test/bad/../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: dir(%s/test/bad/../bad/bad.txt): failed to open dir: Operation not permitted in %s on line %d
+Warning: dir(%s/test/bad/../bad/bad.txt): failed to open dir: %s in %s on line %d
bool(false)
object(Directory)#%d (2) {
["path"]=>
http://cvs.php.net/viewvc.cgi/php-src/tests/security/open_basedir_error_log_variation.phpt?r1=1.1.2.1&r2=1.1.2.2&diff_format=u
Index: php-src/tests/security/open_basedir_error_log_variation.phpt
diff -u php-src/tests/security/open_basedir_error_log_variation.phpt:1.1.2.1 php-src/tests/security/open_basedir_error_log_variation.phpt:1.1.2.2
--- php-src/tests/security/open_basedir_error_log_variation.phpt:1.1.2.1 Fri May 9 08:33:54 2008
+++ php-src/tests/security/open_basedir_error_log_variation.phpt Sun Sep 7 22:35:15 2008
@@ -31,17 +31,17 @@
Warning: error_log(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: error_log(%s/test/bad/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: error_log(%s/test/bad/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
Warning: error_log(): open_basedir restriction in effect. File(%s/test/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: error_log(%s/test/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: error_log(%s/test/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
Warning: error_log(): open_basedir restriction in effect. File(%s/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: error_log(%s/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: error_log(%s/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
bool(true)
*** Finished testing open_basedir configuration [error_log] ***
http://cvs.php.net/viewvc.cgi/php-src/tests/security/open_basedir_file.phpt?r1=1.1.2.1&r2=1.1.2.2&diff_format=u
Index: php-src/tests/security/open_basedir_file.phpt
diff -u php-src/tests/security/open_basedir_file.phpt:1.1.2.1 php-src/tests/security/open_basedir_file.phpt:1.1.2.2
--- php-src/tests/security/open_basedir_file.phpt:1.1.2.1 Fri May 9 08:35:58 2008
+++ php-src/tests/security/open_basedir_file.phpt Sun Sep 7 22:35:15 2008
@@ -31,42 +31,42 @@
Warning: file(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on line %d
-Warning: file(../bad): failed to open stream: Operation not permitted in %s on line %d
+Warning: file(../bad): failed to open stream: %s in %s on line %d
bool(false)
Warning: file(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: file(../bad/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: file(../bad/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
Warning: file(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.) in %s on line %d
-Warning: file(..): failed to open stream: Operation not permitted in %s on line %d
+Warning: file(..): failed to open stream: %s in %s on line %d
bool(false)
Warning: file(): open_basedir restriction in effect. File(../) is not within the allowed path(s): (.) in %s on line %d
-Warning: file(../): failed to open stream: Operation not permitted in %s on line %d
+Warning: file(../): failed to open stream: %s in %s on line %d
bool(false)
Warning: file(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.) in %s on line %d
-Warning: file(/): failed to open stream: Operation not permitted in %s on line %d
+Warning: file(/): failed to open stream: %s in %s on line %d
bool(false)
Warning: file(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on line %d
-Warning: file(../bad/.): failed to open stream: Operation not permitted in %s on line %d
+Warning: file(../bad/.): failed to open stream: %s in %s on line %d
bool(false)
Warning: file(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: file(%s/test/bad/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: file(%s/test/bad/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
Warning: file(): open_basedir restriction in effect. File(%s/test/bad/../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: file(%s/test/bad/../bad/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: file(%s/test/bad/../bad/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
array(1) {
[0]=>
http://cvs.php.net/viewvc.cgi/php-src/tests/security/open_basedir_file_get_contents.phpt?r1=1.1.2.1&r2=1.1.2.2&diff_format=u
Index: php-src/tests/security/open_basedir_file_get_contents.phpt
diff -u php-src/tests/security/open_basedir_file_get_contents.phpt:1.1.2.1 php-src/tests/security/open_basedir_file_get_contents.phpt:1.1.2.2
--- php-src/tests/security/open_basedir_file_get_contents.phpt:1.1.2.1 Fri May 9 08:35:57 2008
+++ php-src/tests/security/open_basedir_file_get_contents.phpt Sun Sep 7 22:35:15 2008
@@ -31,42 +31,42 @@
Warning: file_get_contents(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on line %d
-Warning: file_get_contents(../bad): failed to open stream: Operation not permitted in %s on line %d
+Warning: file_get_contents(../bad): failed to open stream: %s in %s on line %d
bool(false)
Warning: file_get_contents(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: file_get_contents(../bad/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: file_get_contents(../bad/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
Warning: file_get_contents(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.) in %s on line %d
-Warning: file_get_contents(..): failed to open stream: Operation not permitted in %s on line %d
+Warning: file_get_contents(..): failed to open stream: %s in %s on line %d
bool(false)
Warning: file_get_contents(): open_basedir restriction in effect. File(../) is not within the allowed path(s): (.) in %s on line %d
-Warning: file_get_contents(../): failed to open stream: Operation not permitted in %s on line %d
+Warning: file_get_contents(../): failed to open stream: %s in %s on line %d
bool(false)
Warning: file_get_contents(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.) in %s on line %d
-Warning: file_get_contents(/): failed to open stream: Operation not permitted in %s on line %d
+Warning: file_get_contents(/): failed to open stream: %s in %s on line %d
bool(false)
Warning: file_get_contents(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on line %d
-Warning: file_get_contents(../bad/.): failed to open stream: Operation not permitted in %s on line %d
+Warning: file_get_contents(../bad/.): failed to open stream: %s in %s on line %d
bool(false)
Warning: file_get_contents(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: file_get_contents(%s/test/bad/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: file_get_contents(%s/test/bad/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
Warning: file_get_contents(): open_basedir restriction in effect. File(%s/test/bad/../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: file_get_contents(%s/test/bad/../bad/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: file_get_contents(%s/test/bad/../bad/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
string(12) "Hello World!"
string(12) "Hello World!"
http://cvs.php.net/viewvc.cgi/php-src/tests/security/open_basedir_file_put_contents.phpt?r1=1.1.2.1&r2=1.1.2.2&diff_format=u
Index: php-src/tests/security/open_basedir_file_put_contents.phpt
diff -u php-src/tests/security/open_basedir_file_put_contents.phpt:1.1.2.1 php-src/tests/security/open_basedir_file_put_contents.phpt:1.1.2.2
--- php-src/tests/security/open_basedir_file_put_contents.phpt:1.1.2.1 Fri May 9 08:35:58 2008
+++ php-src/tests/security/open_basedir_file_put_contents.phpt Sun Sep 7 22:35:15 2008
@@ -31,27 +31,27 @@
Warning: file_put_contents(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: file_put_contents(../bad/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: file_put_contents(../bad/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
Warning: file_put_contents(): open_basedir restriction in effect. File(.././bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: file_put_contents(.././bad/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: file_put_contents(.././bad/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
Warning: file_put_contents(): open_basedir restriction in effect. File(../bad/../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: file_put_contents(../bad/../bad/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: file_put_contents(../bad/../bad/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
Warning: file_put_contents(): open_basedir restriction in effect. File(./.././bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: file_put_contents(./.././bad/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: file_put_contents(./.././bad/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
Warning: file_put_contents(): open_basedir restriction in effect. File%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: file_put_contents%s/test/bad/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: file_put_contents%s/test/bad/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
*** Finished testing open_basedir configuration [file_put_contents] ***
http://cvs.php.net/viewvc.cgi/php-src/tests/security/open_basedir_fopen.phpt?r1=1.1.2.1&r2=1.1.2.2&diff_format=u
Index: php-src/tests/security/open_basedir_fopen.phpt
diff -u php-src/tests/security/open_basedir_fopen.phpt:1.1.2.1 php-src/tests/security/open_basedir_fopen.phpt:1.1.2.2
--- php-src/tests/security/open_basedir_fopen.phpt:1.1.2.1 Fri May 9 08:35:58 2008
+++ php-src/tests/security/open_basedir_fopen.phpt Sun Sep 7 22:35:15 2008
@@ -40,42 +40,42 @@
Warning: fopen(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on line %d
-Warning: fopen(../bad): failed to open stream: Operation not permitted in %s on line %d
+Warning: fopen(../bad): failed to open stream: %s in %s on line %d
bool(false)
Warning: fopen(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: fopen(../bad/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: fopen(../bad/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
Warning: fopen(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.) in %s on line %d
-Warning: fopen(..): failed to open stream: Operation not permitted in %s on line %d
+Warning: fopen(..): failed to open stream: %s in %s on line %d
bool(false)
Warning: fopen(): open_basedir restriction in effect. File(../) is not within the allowed path(s): (.) in %s on line %d
-Warning: fopen(../): failed to open stream: Operation not permitted in %s on line %d
+Warning: fopen(../): failed to open stream: %s in %s on line %d
bool(false)
Warning: fopen(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.) in %s on line %d
-Warning: fopen(/): failed to open stream: Operation not permitted in %s on line %d
+Warning: fopen(/): failed to open stream: %s in %s on line %d
bool(false)
Warning: fopen(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on line %d
-Warning: fopen(../bad/.): failed to open stream: Operation not permitted in %s on line %d
+Warning: fopen(../bad/.): failed to open stream: %s in %s on line %d
bool(false)
Warning: fopen(): open_basedir restriction in effect. File(../bad/./bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: fopen(../bad/./bad.txt): failed to open stream: Operation not permitted in %s on line 12
+Warning: fopen(../bad/./bad.txt): failed to open stream: %s in %s on line 12
bool(false)
Warning: fopen(): open_basedir restriction in effect. File(./../.) is not within the allowed path(s): (.) in %s on line %d
-Warning: fopen(./../.): failed to open stream: Operation not permitted in %s on line %d
+Warning: fopen(./../.): failed to open stream: %s in %s on line %d
bool(false)
resource(%d) of type (stream)
resource(%d) of type (stream)
http://cvs.php.net/viewvc.cgi/php-src/tests/security/open_basedir_opendir.phpt?r1=1.1.2.1&r2=1.1.2.2&diff_format=u
Index: php-src/tests/security/open_basedir_opendir.phpt
diff -u php-src/tests/security/open_basedir_opendir.phpt:1.1.2.1 php-src/tests/security/open_basedir_opendir.phpt:1.1.2.2
--- php-src/tests/security/open_basedir_opendir.phpt:1.1.2.1 Fri May 9 08:35:57 2008
+++ php-src/tests/security/open_basedir_opendir.phpt Sun Sep 7 22:35:15 2008
@@ -29,42 +29,42 @@
Warning: opendir(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on line %d
-Warning: opendir(../bad): failed to open dir: Operation not permitted in %s on line %d
+Warning: opendir(../bad): failed to open dir: %s in %s on line %d
bool(false)
Warning: opendir(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: opendir(../bad/bad.txt): failed to open dir: Operation not permitted in %s on line %d
+Warning: opendir(../bad/bad.txt): failed to open dir: %s in %s on line %d
bool(false)
Warning: opendir(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.) in %s on line %d
-Warning: opendir(..): failed to open dir: Operation not permitted in %s on line %d
+Warning: opendir(..): failed to open dir: %s in %s on line %d
bool(false)
Warning: opendir(): open_basedir restriction in effect. File(../) is not within the allowed path(s): (.) in %s on line %d
-Warning: opendir(../): failed to open dir: Operation not permitted in %s on line %d
+Warning: opendir(../): failed to open dir: %s in %s on line %d
bool(false)
Warning: opendir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.) in %s on line %d
-Warning: opendir(/): failed to open dir: Operation not permitted in %s on line %d
+Warning: opendir(/): failed to open dir: %s in %s on line %d
bool(false)
Warning: opendir(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on line %d
-Warning: opendir(../bad/.): failed to open dir: Operation not permitted in %s on line %d
+Warning: opendir(../bad/.): failed to open dir: %s in %s on line %d
bool(false)
Warning: opendir(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: opendir(%s/test/bad/bad.txt): failed to open dir: Operation not permitted in %s on line %d
+Warning: opendir(%s/test/bad/bad.txt): failed to open dir: %s in %s on line %d
bool(false)
Warning: opendir(): open_basedir restriction in effect. File(%s/test/bad/../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: opendir(%s/test/bad/../bad/bad.txt): failed to open dir: Operation not permitted in %s on line %d
+Warning: opendir(%s/test/bad/../bad/bad.txt): failed to open dir: %s in %s on line %d
bool(false)
resource(%d) of type (stream)
resource(%d) of type (stream)
http://cvs.php.net/viewvc.cgi/php-src/tests/security/open_basedir_scandir.phpt?r1=1.1.2.1&r2=1.1.2.2&diff_format=u
Index: php-src/tests/security/open_basedir_scandir.phpt
diff -u php-src/tests/security/open_basedir_scandir.phpt:1.1.2.1 php-src/tests/security/open_basedir_scandir.phpt:1.1.2.2
--- php-src/tests/security/open_basedir_scandir.phpt:1.1.2.1 Fri May 9 08:35:57 2008
+++ php-src/tests/security/open_basedir_scandir.phpt Sun Sep 7 22:35:15 2008
@@ -29,58 +29,58 @@
Warning: scandir(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on line %d
-Warning: scandir(../bad): failed to open dir: Operation not permitted in %s on line %d
+Warning: scandir(../bad): failed to open dir: %s in %s on line %d
-Warning: scandir(): (errno 1): Operation not permitted in %s on line %d
+Warning: scandir(): (errno 1): %s in %s on line %d
bool(false)
Warning: scandir(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: scandir(../bad/bad.txt): failed to open dir: Operation not permitted in %s on line %d
+Warning: scandir(../bad/bad.txt): failed to open dir: %s in %s on line %d
-Warning: scandir(): (errno 1): Operation not permitted in %s on line %d
+Warning: scandir(): (errno 1): %s in %s on line %d
bool(false)
Warning: scandir(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.) in %s on line %d
-Warning: scandir(..): failed to open dir: Operation not permitted in %s on line %d
+Warning: scandir(..): failed to open dir: %s in %s on line %d
-Warning: scandir(): (errno 1): Operation not permitted in %s on line %d
+Warning: scandir(): (errno 1): %s in %s on line %d
bool(false)
Warning: scandir(): open_basedir restriction in effect. File(../) is not within the allowed path(s): (.) in %s on line 80
-Warning: scandir(../): failed to open dir: Operation not permitted in %s on line %d
+Warning: scandir(../): failed to open dir: %s in %s on line %d
-Warning: scandir(): (errno 1): Operation not permitted in %s on line %d
+Warning: scandir(): (errno 1): %s in %s on line %d
bool(false)
Warning: scandir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.) in %s on line %d
-Warning: scandir(/): failed to open dir: Operation not permitted in %s on line %d
+Warning: scandir(/): failed to open dir: %s in %s on line %d
-Warning: scandir(): (errno 1): Operation not permitted in %s on line %d
+Warning: scandir(): (errno 1): %s in %s on line %d
bool(false)
Warning: scandir(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on line %d
-Warning: scandir(../bad/.): failed to open dir: Operation not permitted in %s on line %d
+Warning: scandir(../bad/.): failed to open dir: %s in %s on line %d
-Warning: scandir(): (errno 1): Operation not permitted in %s on line %d
+Warning: scandir(): (errno 1): %s in %s on line %d
bool(false)
Warning: scandir(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: scandir(%s/test/bad/bad.txt): failed to open dir: Operation not permitted in %s on line %d
+Warning: scandir(%s/test/bad/bad.txt): failed to open dir: %s in %s on line %d
-Warning: scandir(): (errno 1): Operation not permitted in %s on line %d
+Warning: scandir(): (errno 1): %s in %s on line %d
bool(false)
Warning: scandir(): open_basedir restriction in effect. File(%s/test/bad/../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: scandir(%s/test/bad/../bad/bad.txt): failed to open dir: Operation not permitted in %s on line %d
+Warning: scandir(%s/test/bad/../bad/bad.txt): failed to open dir: %s in %s on line %d
-Warning: scandir(): (errno 1): Operation not permitted in %s on line %d
+Warning: scandir(): (errno 1): %s in %s on line %d
bool(false)
array(3) {
[0]=>
johannes Sun Sep 7 22:35:15 2008 UTC
Modified files: (Branch: PHP_5_2)
/php-src/tests/security open_basedir_copy.phpt
open_basedir_dir.phpt
open_basedir_error_log_variation.phpt
open_basedir_file.phpt
open_basedir_file_get_contents.phpt
open_basedir_file_put_contents.phpt
open_basedir_fopen.phpt
open_basedir_opendir.phpt
open_basedir_scandir.phpt
Log:
- MFH: The exact error message might differ (it's "Not owner" on Solaris)
[PHP-CVS] cvs: php-src(PHP_5_3) /tests/security open_basedir_copy.phpt open_basedir_dir.phpt open_basedir_error_log_variation.phpt open_basedir_file.phpt open_basedir_file_get_contents.phpt open_basedir_file_put_contents.phpt open_basedir_fopen.phpt open_basedir_opendir.phpt open_basedir_scandir.phpt
Index: php-src/tests/security/open_basedir_copy.phpt
diff -u php-src/tests/security/open_basedir_copy.phpt:1.1.4.2 php-src/tests/security/open_basedir_copy.phpt:1.1.4.3
--- php-src/tests/security/open_basedir_copy.phpt:1.1.4.2 Fri May 9 08:39:44 2008
+++ php-src/tests/security/open_basedir_copy.phpt Sun Sep 7 22:34:39 2008
@@ -36,42 +36,42 @@
Warning: copy(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on line %d
-Warning: copy(../bad): failed to open stream: Operation not permitted in %s on line %d
+Warning: copy(../bad): failed to open stream: %s in %s on line %d
bool(false)
Warning: copy(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: copy(../bad/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: copy(../bad/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
Warning: copy(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.) in %s on line %d
-Warning: copy(..): failed to open stream: Operation not permitted in %s on line %d
+Warning: copy(..): failed to open stream: %s in %s on line %d
bool(false)
Warning: copy(): open_basedir restriction in effect. File(../) is not within the allowed path(s): (.) in %s on line %d
-Warning: copy(../): failed to open stream: Operation not permitted in %s on line %d
+Warning: copy(../): failed to open stream: %s in %s on line %d
bool(false)
Warning: copy(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.) in %s on line %d
-Warning: copy(/): failed to open stream: Operation not permitted in %s on line %d
+Warning: copy(/): failed to open stream: %s in %s on line %d
bool(false)
Warning: copy(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on line %d
-Warning: copy(../bad/.): failed to open stream: Operation not permitted in %s on line %d
+Warning: copy(../bad/.): failed to open stream: %s in %s on line %d
bool(false)
Warning: copy(): open_basedir restriction in effect. File(../bad/./bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: copy(../bad/./bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: copy(../bad/./bad.txt): failed to open stream: %s in %s on line %d
bool(false)
Warning: copy(): open_basedir restriction in effect. File(./../.) is not within the allowed path(s): (.) in %s on line %d
-Warning: copy(./../.): failed to open stream: Operation not permitted in %s on line %d
+Warning: copy(./../.): failed to open stream: %s in %s on line %d
bool(false)
bool(true)
bool(true)
http://cvs.php.net/viewvc.cgi/php-src/tests/security/open_basedir_dir.phpt?r1=1.1.4.2&r2=1.1.4.3&diff_format=u
Index: php-src/tests/security/open_basedir_dir.phpt
diff -u php-src/tests/security/open_basedir_dir.phpt:1.1.4.2 php-src/tests/security/open_basedir_dir.phpt:1.1.4.3
--- php-src/tests/security/open_basedir_dir.phpt:1.1.4.2 Fri May 9 08:39:44 2008
+++ php-src/tests/security/open_basedir_dir.phpt Sun Sep 7 22:34:39 2008
@@ -29,42 +29,42 @@
Warning: dir(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on line %d
-Warning: dir(../bad): failed to open dir: Operation not permitted in %s on line %d
+Warning: dir(../bad): failed to open dir: %s in %s on line %d
bool(false)
Warning: dir(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: dir(../bad/bad.txt): failed to open dir: Operation not permitted in %s on line %d
+Warning: dir(../bad/bad.txt): failed to open dir: %s in %s on line %d
bool(false)
Warning: dir(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.) in %s on line %d
-Warning: dir(..): failed to open dir: Operation not permitted in %s on line %d
+Warning: dir(..): failed to open dir: %s in %s on line %d
bool(false)
Warning: dir(): open_basedir restriction in effect. File(../) is not within the allowed path(s): (.) in %s on line %d
-Warning: dir(../): failed to open dir: Operation not permitted in %s on line %d
+Warning: dir(../): failed to open dir: %s in %s on line %d
bool(false)
Warning: dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.) in %s on line %d
-Warning: dir(/): failed to open dir: Operation not permitted in %s on line %d
+Warning: dir(/): failed to open dir: %s in %s on line %d
bool(false)
Warning: dir(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on line %d
-Warning: dir(../bad/.): failed to open dir: Operation not permitted in %s on line %d
+Warning: dir(../bad/.): failed to open dir: %s in %s on line %d
bool(false)
Warning: dir(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: dir(%s/test/bad/bad.txt): failed to open dir: Operation not permitted in %s on line %d
+Warning: dir(%s/test/bad/bad.txt): failed to open dir: %s in %s on line %d
bool(false)
Warning: dir(): open_basedir restriction in effect. File(%s/test/bad/../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: dir(%s/test/bad/../bad/bad.txt): failed to open dir: Operation not permitted in %s on line %d
+Warning: dir(%s/test/bad/../bad/bad.txt): failed to open dir: %s in %s on line %d
bool(false)
object(Directory)#%d (2) {
["path"]=>
http://cvs.php.net/viewvc.cgi/php-src/tests/security/open_basedir_error_log_variation.phpt?r1=1.1.4.2&r2=1.1.4.3&diff_format=u
Index: php-src/tests/security/open_basedir_error_log_variation.phpt
diff -u php-src/tests/security/open_basedir_error_log_variation.phpt:1.1.4.2 php-src/tests/security/open_basedir_error_log_variation.phpt:1.1.4.3
--- php-src/tests/security/open_basedir_error_log_variation.phpt:1.1.4.2 Fri May 9 08:39:44 2008
+++ php-src/tests/security/open_basedir_error_log_variation.phpt Sun Sep 7 22:34:39 2008
@@ -31,17 +31,17 @@
Warning: error_log(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: error_log(%s/test/bad/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: error_log(%s/test/bad/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
Warning: error_log(): open_basedir restriction in effect. File(%s/test/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: error_log(%s/test/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: error_log(%s/test/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
Warning: error_log(): open_basedir restriction in effect. File(%s/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: error_log(%s/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: error_log(%s/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
bool(true)
*** Finished testing open_basedir configuration [error_log] ***
http://cvs.php.net/viewvc.cgi/php-src/tests/security/open_basedir_file.phpt?r1=1.1.4.2&r2=1.1.4.3&diff_format=u
Index: php-src/tests/security/open_basedir_file.phpt
diff -u php-src/tests/security/open_basedir_file.phpt:1.1.4.2 php-src/tests/security/open_basedir_file.phpt:1.1.4.3
--- php-src/tests/security/open_basedir_file.phpt:1.1.4.2 Fri May 9 08:39:44 2008
+++ php-src/tests/security/open_basedir_file.phpt Sun Sep 7 22:34:39 2008
@@ -31,42 +31,42 @@
Warning: file(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on line %d
-Warning: file(../bad): failed to open stream: Operation not permitted in %s on line %d
+Warning: file(../bad): failed to open stream: %s in %s on line %d
bool(false)
Warning: file(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: file(../bad/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: file(../bad/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
Warning: file(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.) in %s on line %d
-Warning: file(..): failed to open stream: Operation not permitted in %s on line %d
+Warning: file(..): failed to open stream: %s in %s on line %d
bool(false)
Warning: file(): open_basedir restriction in effect. File(../) is not within the allowed path(s): (.) in %s on line %d
-Warning: file(../): failed to open stream: Operation not permitted in %s on line %d
+Warning: file(../): failed to open stream: %s in %s on line %d
bool(false)
Warning: file(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.) in %s on line %d
-Warning: file(/): failed to open stream: Operation not permitted in %s on line %d
+Warning: file(/): failed to open stream: %s in %s on line %d
bool(false)
Warning: file(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on line %d
-Warning: file(../bad/.): failed to open stream: Operation not permitted in %s on line %d
+Warning: file(../bad/.): failed to open stream: %s in %s on line %d
bool(false)
Warning: file(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: file(%s/test/bad/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: file(%s/test/bad/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
Warning: file(): open_basedir restriction in effect. File(%s/test/bad/../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: file(%s/test/bad/../bad/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: file(%s/test/bad/../bad/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
array(1) {
[0]=>
http://cvs.php.net/viewvc.cgi/php-src/tests/security/open_basedir_file_get_contents.phpt?r1=1.1.4.2&r2=1.1.4.3&diff_format=u
Index: php-src/tests/security/open_basedir_file_get_contents.phpt
diff -u php-src/tests/security/open_basedir_file_get_contents.phpt:1.1.4.2 php-src/tests/security/open_basedir_file_get_contents.phpt:1.1.4.3
--- php-src/tests/security/open_basedir_file_get_contents.phpt:1.1.4.2 Fri May 9 08:39:44 2008
+++ php-src/tests/security/open_basedir_file_get_contents.phpt Sun Sep 7 22:34:39 2008
@@ -31,42 +31,42 @@
Warning: file_get_contents(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on line %d
-Warning: file_get_contents(../bad): failed to open stream: Operation not permitted in %s on line %d
+Warning: file_get_contents(../bad): failed to open stream: %s in %s on line %d
bool(false)
Warning: file_get_contents(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: file_get_contents(../bad/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: file_get_contents(../bad/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
Warning: file_get_contents(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.) in %s on line %d
-Warning: file_get_contents(..): failed to open stream: Operation not permitted in %s on line %d
+Warning: file_get_contents(..): failed to open stream: %s in %s on line %d
bool(false)
Warning: file_get_contents(): open_basedir restriction in effect. File(../) is not within the allowed path(s): (.) in %s on line %d
-Warning: file_get_contents(../): failed to open stream: Operation not permitted in %s on line %d
+Warning: file_get_contents(../): failed to open stream: %s in %s on line %d
bool(false)
Warning: file_get_contents(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.) in %s on line %d
-Warning: file_get_contents(/): failed to open stream: Operation not permitted in %s on line %d
+Warning: file_get_contents(/): failed to open stream: %s in %s on line %d
bool(false)
Warning: file_get_contents(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on line %d
-Warning: file_get_contents(../bad/.): failed to open stream: Operation not permitted in %s on line %d
+Warning: file_get_contents(../bad/.): failed to open stream: %s in %s on line %d
bool(false)
Warning: file_get_contents(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: file_get_contents(%s/test/bad/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: file_get_contents(%s/test/bad/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
Warning: file_get_contents(): open_basedir restriction in effect. File(%s/test/bad/../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: file_get_contents(%s/test/bad/../bad/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: file_get_contents(%s/test/bad/../bad/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
string(12) "Hello World!"
string(12) "Hello World!"
http://cvs.php.net/viewvc.cgi/php-src/tests/security/open_basedir_file_put_contents.phpt?r1=1.1.4.2&r2=1.1.4.3&diff_format=u
Index: php-src/tests/security/open_basedir_file_put_contents.phpt
diff -u php-src/tests/security/open_basedir_file_put_contents.phpt:1.1.4.2 php-src/tests/security/open_basedir_file_put_contents.phpt:1.1.4.3
--- php-src/tests/security/open_basedir_file_put_contents.phpt:1.1.4.2 Fri May 9 08:39:44 2008
+++ php-src/tests/security/open_basedir_file_put_contents.phpt Sun Sep 7 22:34:40 2008
@@ -31,27 +31,27 @@
Warning: file_put_contents(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: file_put_contents(../bad/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: file_put_contents(../bad/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
Warning: file_put_contents(): open_basedir restriction in effect. File(.././bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: file_put_contents(.././bad/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: file_put_contents(.././bad/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
Warning: file_put_contents(): open_basedir restriction in effect. File(../bad/../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: file_put_contents(../bad/../bad/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: file_put_contents(../bad/../bad/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
Warning: file_put_contents(): open_basedir restriction in effect. File(./.././bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: file_put_contents(./.././bad/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: file_put_contents(./.././bad/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
Warning: file_put_contents(): open_basedir restriction in effect. File%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: file_put_contents%s/test/bad/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: file_put_contents%s/test/bad/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
*** Finished testing open_basedir configuration [file_put_contents] ***
http://cvs.php.net/viewvc.cgi/php-src/tests/security/open_basedir_fopen.phpt?r1=1.1.4.2&r2=1.1.4.3&diff_format=u
Index: php-src/tests/security/open_basedir_fopen.phpt
diff -u php-src/tests/security/open_basedir_fopen.phpt:1.1.4.2 php-src/tests/security/open_basedir_fopen.phpt:1.1.4.3
--- php-src/tests/security/open_basedir_fopen.phpt:1.1.4.2 Fri May 9 08:39:44 2008
+++ php-src/tests/security/open_basedir_fopen.phpt Sun Sep 7 22:34:40 2008
@@ -40,42 +40,42 @@
Warning: fopen(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on line %d
-Warning: fopen(../bad): failed to open stream: Operation not permitted in %s on line %d
+Warning: fopen(../bad): failed to open stream: %s in %s on line %d
bool(false)
Warning: fopen(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: fopen(../bad/bad.txt): failed to open stream: Operation not permitted in %s on line %d
+Warning: fopen(../bad/bad.txt): failed to open stream: %s in %s on line %d
bool(false)
Warning: fopen(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.) in %s on line %d
-Warning: fopen(..): failed to open stream: Operation not permitted in %s on line %d
+Warning: fopen(..): failed to open stream: %s in %s on line %d
bool(false)
Warning: fopen(): open_basedir restriction in effect. File(../) is not within the allowed path(s): (.) in %s on line %d
-Warning: fopen(../): failed to open stream: Operation not permitted in %s on line %d
+Warning: fopen(../): failed to open stream: %s in %s on line %d
bool(false)
Warning: fopen(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.) in %s on line %d
-Warning: fopen(/): failed to open stream: Operation not permitted in %s on line %d
+Warning: fopen(/): failed to open stream: %s in %s on line %d
bool(false)
Warning: fopen(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on line %d
-Warning: fopen(../bad/.): failed to open stream: Operation not permitted in %s on line %d
+Warning: fopen(../bad/.): failed to open stream: %s in %s on line %d
bool(false)
Warning: fopen(): open_basedir restriction in effect. File(../bad/./bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: fopen(../bad/./bad.txt): failed to open stream: Operation not permitted in %s on line 12
+Warning: fopen(../bad/./bad.txt): failed to open stream: %s in %s on line 12
bool(false)
Warning: fopen(): open_basedir restriction in effect. File(./../.) is not within the allowed path(s): (.) in %s on line %d
-Warning: fopen(./../.): failed to open stream: Operation not permitted in %s on line %d
+Warning: fopen(./../.): failed to open stream: %s in %s on line %d
bool(false)
resource(%d) of type (stream)
resource(%d) of type (stream)
http://cvs.php.net/viewvc.cgi/php-src/tests/security/open_basedir_opendir.phpt?r1=1.1.4.2&r2=1.1.4.3&diff_format=u
Index: php-src/tests/security/open_basedir_opendir.phpt
diff -u php-src/tests/security/open_basedir_opendir.phpt:1.1.4.2 php-src/tests/security/open_basedir_opendir.phpt:1.1.4.3
--- php-src/tests/security/open_basedir_opendir.phpt:1.1.4.2 Fri May 9 08:39:44 2008
+++ php-src/tests/security/open_basedir_opendir.phpt Sun Sep 7 22:34:40 2008
@@ -29,42 +29,42 @@
Warning: opendir(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on line %d
-Warning: opendir(../bad): failed to open dir: Operation not permitted in %s on line %d
+Warning: opendir(../bad): failed to open dir: %s in %s on line %d
bool(false)
Warning: opendir(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: opendir(../bad/bad.txt): failed to open dir: Operation not permitted in %s on line %d
+Warning: opendir(../bad/bad.txt): failed to open dir: %s in %s on line %d
bool(false)
Warning: opendir(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.) in %s on line %d
-Warning: opendir(..): failed to open dir: Operation not permitted in %s on line %d
+Warning: opendir(..): failed to open dir: %s in %s on line %d
bool(false)
Warning: opendir(): open_basedir restriction in effect. File(../) is not within the allowed path(s): (.) in %s on line %d
-Warning: opendir(../): failed to open dir: Operation not permitted in %s on line %d
+Warning: opendir(../): failed to open dir: %s in %s on line %d
bool(false)
Warning: opendir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.) in %s on line %d
-Warning: opendir(/): failed to open dir: Operation not permitted in %s on line %d
+Warning: opendir(/): failed to open dir: %s in %s on line %d
bool(false)
Warning: opendir(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on line %d
-Warning: opendir(../bad/.): failed to open dir: Operation not permitted in %s on line %d
+Warning: opendir(../bad/.): failed to open dir: %s in %s on line %d
bool(false)
Warning: opendir(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: opendir(%s/test/bad/bad.txt): failed to open dir: Operation not permitted in %s on line %d
+Warning: opendir(%s/test/bad/bad.txt): failed to open dir: %s in %s on line %d
bool(false)
Warning: opendir(): open_basedir restriction in effect. File(%s/test/bad/../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: opendir(%s/test/bad/../bad/bad.txt): failed to open dir: Operation not permitted in %s on line %d
+Warning: opendir(%s/test/bad/../bad/bad.txt): failed to open dir: %s in %s on line %d
bool(false)
resource(%d) of type (stream)
resource(%d) of type (stream)
http://cvs.php.net/viewvc.cgi/php-src/tests/security/open_basedir_scandir.phpt?r1=1.1.4.2&r2=1.1.4.3&diff_format=u
Index: php-src/tests/security/open_basedir_scandir.phpt
diff -u php-src/tests/security/open_basedir_scandir.phpt:1.1.4.2 php-src/tests/security/open_basedir_scandir.phpt:1.1.4.3
--- php-src/tests/security/open_basedir_scandir.phpt:1.1.4.2 Fri May 9 08:39:44 2008
+++ php-src/tests/security/open_basedir_scandir.phpt Sun Sep 7 22:34:40 2008
@@ -29,58 +29,58 @@
Warning: scandir(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on line %d
-Warning: scandir(../bad): failed to open dir: Operation not permitted in %s on line %d
+Warning: scandir(../bad): failed to open dir: %s in %s on line %d
-Warning: scandir(): (errno 1): Operation not permitted in %s on line %d
+Warning: scandir(): (errno 1): %s in %s on line %d
bool(false)
Warning: scandir(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: scandir(../bad/bad.txt): failed to open dir: Operation not permitted in %s on line %d
+Warning: scandir(../bad/bad.txt): failed to open dir: %s in %s on line %d
-Warning: scandir(): (errno 1): Operation not permitted in %s on line %d
+Warning: scandir(): (errno 1): %s in %s on line %d
bool(false)
Warning: scandir(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.) in %s on line %d
-Warning: scandir(..): failed to open dir: Operation not permitted in %s on line %d
+Warning: scandir(..): failed to open dir: %s in %s on line %d
-Warning: scandir(): (errno 1): Operation not permitted in %s on line %d
+Warning: scandir(): (errno 1): %s in %s on line %d
bool(false)
Warning: scandir(): open_basedir restriction in effect. File(../) is not within the allowed path(s): (.) in %s on line 80
-Warning: scandir(../): failed to open dir: Operation not permitted in %s on line %d
+Warning: scandir(../): failed to open dir: %s in %s on line %d
-Warning: scandir(): (errno 1): Operation not permitted in %s on line %d
+Warning: scandir(): (errno 1): %s in %s on line %d
bool(false)
Warning: scandir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.) in %s on line %d
-Warning: scandir(/): failed to open dir: Operation not permitted in %s on line %d
+Warning: scandir(/): failed to open dir: %s in %s on line %d
-Warning: scandir(): (errno 1): Operation not permitted in %s on line %d
+Warning: scandir(): (errno 1): %s in %s on line %d
bool(false)
Warning: scandir(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on line %d
-Warning: scandir(../bad/.): failed to open dir: Operation not permitted in %s on line %d
+Warning: scandir(../bad/.): failed to open dir: %s in %s on line %d
-Warning: scandir(): (errno 1): Operation not permitted in %s on line %d
+Warning: scandir(): (errno 1): %s in %s on line %d
bool(false)
Warning: scandir(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: scandir(%s/test/bad/bad.txt): failed to open dir: Operation not permitted in %s on line %d
+Warning: scandir(%s/test/bad/bad.txt): failed to open dir: %s in %s on line %d
-Warning: scandir(): (errno 1): Operation not permitted in %s on line %d
+Warning: scandir(): (errno 1): %s in %s on line %d
bool(false)
Warning: scandir(): open_basedir restriction in effect. File(%s/test/bad/../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
-Warning: scandir(%s/test/bad/../bad/bad.txt): failed to open dir: Operation not permitted in %s on line %d
+Warning: scandir(%s/test/bad/../bad/bad.txt): failed to open dir: %s in %s on line %d
-Warning: scandir(): (errno 1): Operation not permitted in %s on line %d
+Warning: scandir(): (errno 1): %s in %s on line %d
bool(false)
array(3) {
[0]=>
johannes Sun Sep 7 22:34:40 2008 UTC
Modified files: (Branch: PHP_5_3)
/php-src/tests/security open_basedir_copy.phpt
open_basedir_dir.phpt
open_basedir_error_log_variation.phpt
open_basedir_file.phpt
open_basedir_file_get_contents.phpt
open_basedir_file_put_contents.phpt
open_basedir_fopen.phpt
open_basedir_opendir.phpt
open_basedir_scandir.phpt
Log:
- MFH: The exact error message might differ (it's "Not owner" on Solaris)