[PHP-CVS-DAILY] cvs: php-src / ChangeLog

2008-04-24 Thread changelog
changelog   Fri Apr 25 01:31:38 2008 UTC

  Modified files:  
/php-srcChangeLog 
  Log:
  ChangeLog update
  
http://cvs.php.net/viewvc.cgi/php-src/ChangeLog?r1=1.3027r2=1.3028diff_format=u
Index: php-src/ChangeLog
diff -u php-src/ChangeLog:1.3027 php-src/ChangeLog:1.3028
--- php-src/ChangeLog:1.3027Thu Apr 24 01:32:05 2008
+++ php-src/ChangeLog   Fri Apr 25 01:31:37 2008
@@ -1,3 +1,120 @@
+2008-04-24  Ant Phillips  [EMAIL PROTECTED]
+
+* ext/standard/tests/file/open_basedir_copy_variation1.phpt
+  ext/standard/tests/file/open_basedir_copy_variation1.phpt:
+  Extra open_basedir tests
+
+* ext/standard/tests/file/open_basedir_copy_variation1.phpt
+  ext/standard/tests/file/open_basedir_copy_variation1.phpt
+  ext/standard/tests/file/open_basedir_copy_variation1.phpt:
+1.1.4;
+  file open_basedir_copy_variation1.phpt was initially added on branch
+  PHP_5_2.
+
+2008-04-24  Felipe Pena  [EMAIL PROTECTED]
+
+* ZendEngine2/zend_compile.c
+  ZendEngine2/zend_gc.c:
+  - Removed unused variables
+
+2008-04-24  Steph Fox  [EMAIL PROTECTED]
+
+* (PHP_5_3)
+  win32/build/config.w32:
+  - re2c requirement update
+  (sorry, I thought I'd committed this ages ago)
+
+2008-04-24  Dmitry Stogov  [EMAIL PROTECTED]
+
+* ZendEngine2/zend_execute.c
+  ZendEngine2/zend_execute.c
+  ZendEngine2/zend_vm_def.h
+  ZendEngine2/zend_vm_def.h
+  ZendEngine2/zend_vm_execute.h
+  ZendEngine2/zend_vm_execute.h:
+  Optimized handlers for ZEND_RECV and ZEND_RECV_INIT opocdes
+
+2008-04-24  Andrey Hristov  [EMAIL PROTECTED]
+
+* ext/mysql/tests/connect.inc
+  ext/mysql/tests/mysql_fetch_array.phpt
+  ext/mysql/tests/mysql_fetch_array.phpt
+  ext/mysql/tests/mysql_phpinfo.phpt
+  ext/mysqli/mysqli_api.c
+  ext/mysqli/mysqli_api.c
+  ext/mysqli/mysqli_fe.c
+  ext/mysqli/mysqli_fe.c
+  ext/mysqli/mysqli_nonapi.c
+  ext/mysqli/php_mysqli_structs.h
+  ext/mysqli/php_mysqli_structs.h
+  ext/mysqli/tests/mysqli_class_mysqli_interface.phpt
+  ext/mysqli/tests/mysqli_class_mysqli_stmt_interface.phpt
+  ext/mysqli/tests/mysqli_class_mysqli_stmt_interface.phpt
+  ext/mysqli/tests/mysqli_fetch_all.phpt
+  ext/mysqli/tests/mysqli_fetch_all.phpt
+  ext/mysqli/tests/mysqli_fetch_all_oo.phpt
+  ext/mysqli/tests/mysqli_fetch_all_oo.phpt
+  ext/mysqli/tests/mysqli_fetch_array.phpt
+  ext/mysqli/tests/mysqli_fetch_array.phpt
+  ext/mysqli/tests/mysqli_fetch_array_oo.phpt
+  ext/mysqli/tests/mysqli_fetch_array_oo.phpt
+  ext/mysqli/tests/mysqli_fetch_field_flags.phpt
+  ext/mysqli/tests/mysqli_fetch_field_flags.phpt
+  ext/mysqli/tests/mysqli_stmt_execute.phpt
+  ext/mysqli/tests/mysqli_stmt_execute.phpt
+  ext/mysqlnd/mysqlnd.c
+  ext/mysqlnd/mysqlnd.c
+  ext/mysqlnd/mysqlnd.h
+  ext/mysqlnd/mysqlnd.h
+  ext/mysqlnd/mysqlnd_enum_n_def.h
+  ext/mysqlnd/mysqlnd_enum_n_def.h
+  ext/mysqlnd/mysqlnd_palloc.c
+  ext/mysqlnd/mysqlnd_palloc.c
+  ext/mysqlnd/mysqlnd_priv.h
+  ext/mysqlnd/mysqlnd_priv.h
+  ext/mysqlnd/mysqlnd_ps.c
+  ext/mysqlnd/mysqlnd_ps.c
+  ext/mysqlnd/mysqlnd_ps_codec.c
+  ext/mysqlnd/mysqlnd_ps_codec.c
+  ext/mysqlnd/mysqlnd_result.c
+  ext/mysqlnd/mysqlnd_result.c
+  ext/mysqlnd/mysqlnd_structs.h
+  ext/mysqlnd/mysqlnd_structs.h
+  ext/mysqlnd/mysqlnd_wireprotocol.c
+  ext/mysqlnd/mysqlnd_wireprotocol.c:
+  Update ext/mysql's and ext/mysqli's tests
+  Add mysqli_stmt_more_result()/mysqli_stmt_next_result(), but only in
+  mysqlnd builds as libmysql doesn't support this feature.
+
+2008-04-24  Ant Phillips  [EMAIL PROTECTED]
+
+* ext/standard/tests/file/open_basedir.inc
+  ext/standard/tests/file/open_basedir.inc
+  ext/standard/tests/file/open_basedir.inc:
+  Allow for chmod() to fail on symbolic links
+
+2008-04-24  Pierre-Alain Joye  [EMAIL PROTECTED]
+
+* (PHP_5_3)
+  ext/standard/tests/file/bug44805.phpt:
+  - MFH: improve test and remove files on exit
+
+* ext/standard/tests/file/bug44805.phpt:
+  - improve test and remove files on exit
+
+2008-04-24  Dmitry Stogov  [EMAIL PROTECTED]
+
+* (PHP_5_3)
+  NEWS
+  TSRM/tsrm_virtual_cwd.c
+  TSRM/tsrm_virtual_cwd.c
+  TSRM/tsrm_virtual_cwd.h
+  TSRM/tsrm_virtual_cwd.h
+  ext/standard/tests/file/bug44805.phpt
+  ext/standard/tests/file/bug44805.phpt
+  ext/standard/tests/file/bug44805.phpt:
+  Fixed bug #44805 (rename() function is not portable to Windows). (Pierre)
+
 2008-04-23  Johannes Schlüter  [EMAIL PROTECTED]
 
 * ext/mysqlnd/mysqlnd.h




[PHP-CVS-DAILY] cvs: ZendEngine2 / ChangeLog

2008-04-24 Thread changelog
changelog   Fri Apr 25 01:31:41 2008 UTC

  Modified files:  
/ZendEngine2ChangeLog 
  Log:
  ChangeLog update
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/ChangeLog?r1=1.1288r2=1.1289diff_format=u
Index: ZendEngine2/ChangeLog
diff -u ZendEngine2/ChangeLog:1.1288 ZendEngine2/ChangeLog:1.1289
--- ZendEngine2/ChangeLog:1.1288Tue Apr 22 01:31:37 2008
+++ ZendEngine2/ChangeLog   Fri Apr 25 01:31:41 2008
@@ -1,3 +1,19 @@
+2008-04-24  Felipe Pena  [EMAIL PROTECTED]
+
+* zend_compile.c
+  zend_gc.c:
+  - Removed unused variables
+
+2008-04-24  Dmitry Stogov  [EMAIL PROTECTED]
+
+* zend_execute.c
+  zend_execute.c
+  zend_vm_def.h
+  zend_vm_def.h
+  zend_vm_execute.h
+  zend_vm_execute.h:
+  Optimized handlers for ZEND_RECV and ZEND_RECV_INIT opocdes
+
 2008-04-21  Dmitry Stogov  [EMAIL PROTECTED]
 
 * zend_vm_def.h
@@ -22697,7 +22713,7 @@
 2003-06-10  Jani Taskinen  [EMAIL PROTECTED]
 
 * zend_multiply.h:
-  - Missing $Id: ChangeLog,v 1.1288 2008/04/22 01:31:37 changelog Exp $ tag
+  - Missing $Id: ChangeLog,v 1.1289 2008/04/25 01:31:41 changelog Exp $ tag
 
 2003-06-10  James Cox  [EMAIL PROTECTED]
 
@@ -24421,7 +24437,7 @@
   zend_types.h
   zend_variables.c
   zend_variables.h:
-  - Added some missing CVS $Id: ChangeLog,v 1.1288 2008/04/22 01:31:37 
changelog Exp $ tags, headers and footers.
+  - Added some missing CVS $Id: ChangeLog,v 1.1289 2008/04/25 01:31:41 
changelog Exp $ tags, headers and footers.
 
 2003-01-30  Ilia Alshanetsky  [EMAIL PROTECTED]
 




Re: [PHP-CVS] cvs: php-src(PHP_5_3) /ext/session mod_user.c mod_user.h php_session.h session.c

2008-04-24 Thread Antony Dovgal

On 08.03.2008 02:20, Gwynne Raskind wrote:

gwynne  Fri Mar  7 23:20:32 2008 UTC

  Modified files:  (Branch: PHP_5_3)
/php-src/ext/session	mod_user.c mod_user.h php_session.h session.c 
  Log:

  MFH: fix bug #32330 (session_destroy, Failed to initialize storage module, 
custom session handler)


Gwynne, what about 5_2?

It still leaks memory:

# cat /local/qa/5_2/ext/session/tests/session_set_save_handler_error4.diff
012+ [Thu Apr 24 02:05:35 2008]  Script:  
'/local/qa/5_2/ext/session/tests/session_set_save_handler_error4.php'
013+ /local/qa/5_2/Zend/zend_vm_execute.h(1805) :  Freeing 0x0108F0F0 (24 
bytes), 
script=/local/qa/5_2/ext/session/tests/session_set_save_handler_error4.php
014+ Last leak repeated 5 times
015+ [Thu Apr 24 02:05:35 2008]  Script:  
'/local/qa/5_2/ext/session/tests/session_set_save_handler_error4.php'
016+ /local/qa/5_2/Zend/zend_variables.h(45) :  Freeing 0x01091DA8 (9 bytes), 
script=/local/qa/5_2/ext/session/tests/session_set_save_handler_error4.php
017+ /local/qa/5_2/Zend/zend_variables.c(120) : Actual location (location was 
relayed)
018+ Last leak repeated 5 times
019+ [Thu Apr 24 02:05:35 2008]  Script:  
'/local/qa/5_2/ext/session/tests/session_set_save_handler_error4.php'
020+ /local/qa/5_2/ext/session/session.c(1512) :  Freeing 0x01093A48 (48 
bytes), 
script=/local/qa/5_2/ext/session/tests/session_set_save_handler_error4.php
021+ === Total 13 memory leaks detected ===

--
Wbr, 
Antony Dovgal


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



[PHP-CVS] cvs: php-src /ext/standard/tests/file bug44805.phpt

2008-04-24 Thread Pierre-Alain Joye
pajoye  Thu Apr 24 08:45:12 2008 UTC

  Modified files:  
/php-src/ext/standard/tests/filebug44805.phpt 
  Log:
  - improve test and remove files on exit
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/bug44805.phpt?r1=1.2r2=1.3diff_format=u
Index: php-src/ext/standard/tests/file/bug44805.phpt
diff -u php-src/ext/standard/tests/file/bug44805.phpt:1.2 
php-src/ext/standard/tests/file/bug44805.phpt:1.3
--- php-src/ext/standard/tests/file/bug44805.phpt:1.2   Thu Apr 24 07:46:10 2008
+++ php-src/ext/standard/tests/file/bug44805.phpt   Thu Apr 24 08:45:11 2008
@@ -1,15 +1,30 @@
 --TEST--
 Bug#44806 (rename() function is not portable to Windows)
+--SKIPIF--
+?php
+if (substr(PHP_OS, 0, 3) != 'WIN') {
+die('skip.. only for Windows');
+}
+?
 --FILE--
 ?php
+$dirname = dirname(__FILE__);
+$file1 = $dirname . DIRECTORY_SEPARATOR . file1.txt;
+$file2 = $dirname . DIRECTORY_SEPARATOR . file2.txt;
 
-file_put_contents(file1.txt, this is file 1);
-file_put_contents(file2.txt, this is file 2);
+file_put_contents($file1, this is file 1);
+file_put_contents($file2, this is file 2);
 
-rename(file1.txt, file2.txt);
+rename($file1, $file2);
 
 echo reading file 2: ;
-readfile(file2.txt);
+readfile($file2);
+if (file_exists($file1)) {
+   unlink($file1);
+}
+if (file_exists($file1)) {
+   unlink($file2);
+}
 ?
 --EXPECT--
 reading file 2: this is file 1



-- 
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/standard/tests/file bug44805.phpt

2008-04-24 Thread Pierre-Alain Joye
pajoye  Thu Apr 24 08:45:35 2008 UTC

  Modified files:  (Branch: PHP_5_3)
/php-src/ext/standard/tests/filebug44805.phpt 
  Log:
  - MFH: improve test and remove files on exit
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/bug44805.phpt?r1=1.1.2.1r2=1.1.2.2diff_format=u
Index: php-src/ext/standard/tests/file/bug44805.phpt
diff -u php-src/ext/standard/tests/file/bug44805.phpt:1.1.2.1 
php-src/ext/standard/tests/file/bug44805.phpt:1.1.2.2
--- php-src/ext/standard/tests/file/bug44805.phpt:1.1.2.1   Thu Apr 24 
07:45:01 2008
+++ php-src/ext/standard/tests/file/bug44805.phpt   Thu Apr 24 08:45:35 2008
@@ -1,15 +1,30 @@
 --TEST--
 Bug#44806 (rename() function is not portable to Windows)
+--SKIPIF--
+?php
+if (substr(PHP_OS, 0, 3) != 'WIN') {
+die('skip.. only for Windows');
+}
+?
 --FILE--
 ?php
+$dirname = dirname(__FILE__);
+$file1 = $dirname . DIRECTORY_SEPARATOR . file1.txt;
+$file2 = $dirname . DIRECTORY_SEPARATOR . file2.txt;
 
-file_put_contents(file1.txt, this is file 1);
-file_put_contents(file2.txt, this is file 2);
+file_put_contents($file1, this is file 1);
+file_put_contents($file2, this is file 2);
 
-rename(file1.txt, file2.txt);
+rename($file1, $file2);
 
 echo reading file 2: ;
-readfile(file2.txt);
+readfile($file2);
+if (file_exists($file1)) {
+   unlink($file1);
+}
+if (file_exists($file1)) {
+   unlink($file2);
+}
 ?
 --EXPECT--
 reading file 2: this is file 1



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



[PHP-CVS] cvs: CVSROOT / avail

2008-04-24 Thread Pierre-Alain Joye
pajoye  Thu Apr 24 11:33:48 2008 UTC

  Modified files:  
/CVSROOTavail 
  Log:
  - pecl/tcc karma for hamano
  
  
http://cvs.php.net/viewvc.cgi/CVSROOT/avail?r1=1.1386r2=1.1387diff_format=u
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.1386 CVSROOT/avail:1.1387
--- CVSROOT/avail:1.1386Wed Apr 23 15:54:13 2008
+++ CVSROOT/avail   Thu Apr 24 11:33:48 2008
@@ -289,6 +289,7 @@
 avail|pestilence669|pecl/xrange
 avail|mlively|pecl/runkit,pecl/classkit
 avail|thierry|pecl/fam
+avail|hamano|pecl/tcc
 avail|tetsuya|pear/Services_Yahoo_JP
 
 # Objective-C bridge



-- 
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/standard/tests/file open_basedir.inc

2008-04-24 Thread Ant Phillips
ant Thu Apr 24 13:58:26 2008 UTC

  Modified files:  (Branch: PHP_5_3)
/php-src/ext/standard/tests/fileopen_basedir.inc 
  Log:
  Allow for chmod() to fail on symbolic links
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/open_basedir.inc?r1=1.1.2.2r2=1.1.2.3diff_format=u
Index: php-src/ext/standard/tests/file/open_basedir.inc
diff -u php-src/ext/standard/tests/file/open_basedir.inc:1.1.2.2 
php-src/ext/standard/tests/file/open_basedir.inc:1.1.2.3
--- php-src/ext/standard/tests/file/open_basedir.inc:1.1.2.2Wed Apr 23 
14:10:15 2008
+++ php-src/ext/standard/tests/file/open_basedir.incThu Apr 24 13:58:26 2008
@@ -43,7 +43,7 @@
 if (is_dir($path) == TRUE) {
 recursive_delete_directory($path);
 } else {
-   chmod($path, 0777);
+   @chmod($path, 0777);
 unlink($path);
 }
 }
@@ -51,7 +51,7 @@
 }
 
 closedir($handle);
-   chmod($directory, 0777);
+   @chmod($directory, 0777);
 rmdir($directory);
 
 return TRUE;



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



[PHP-CVS] cvs: php-src /ext/standard/tests/file open_basedir.inc

2008-04-24 Thread Ant Phillips
ant Thu Apr 24 13:58:27 2008 UTC

  Modified files:  
/php-src/ext/standard/tests/fileopen_basedir.inc 
  Log:
  Allow for chmod() to fail on symbolic links
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/open_basedir.inc?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/file/open_basedir.inc
diff -u php-src/ext/standard/tests/file/open_basedir.inc:1.1 
php-src/ext/standard/tests/file/open_basedir.inc:1.2
--- php-src/ext/standard/tests/file/open_basedir.inc:1.1Wed Apr 23 
14:10:12 2008
+++ php-src/ext/standard/tests/file/open_basedir.incThu Apr 24 13:58:27 2008
@@ -43,7 +43,7 @@
 if (is_dir($path) == TRUE) {
 recursive_delete_directory($path);
 } else {
-   chmod($path, 0777);
+   @chmod($path, 0777);
 unlink($path);
 }
 }
@@ -51,7 +51,7 @@
 }
 
 closedir($handle);
-   chmod($directory, 0777);
+   @chmod($directory, 0777);
 rmdir($directory);
 
 return TRUE;



-- 
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/standard/tests/file open_basedir.inc

2008-04-24 Thread Ant Phillips
ant Thu Apr 24 13:58:29 2008 UTC

  Modified files:  (Branch: PHP_5_2)
/php-src/ext/standard/tests/fileopen_basedir.inc 
  Log:
  Allow for chmod() to fail on symbolic links
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/open_basedir.inc?r1=1.1.4.2r2=1.1.4.3diff_format=u
Index: php-src/ext/standard/tests/file/open_basedir.inc
diff -u php-src/ext/standard/tests/file/open_basedir.inc:1.1.4.2 
php-src/ext/standard/tests/file/open_basedir.inc:1.1.4.3
--- php-src/ext/standard/tests/file/open_basedir.inc:1.1.4.2Wed Apr 23 
14:10:23 2008
+++ php-src/ext/standard/tests/file/open_basedir.incThu Apr 24 13:58:29 2008
@@ -43,7 +43,7 @@
 if (is_dir($path) == TRUE) {
 recursive_delete_directory($path);
 } else {
-   chmod($path, 0777);
+   @chmod($path, 0777);
 unlink($path);
 }
 }
@@ -51,7 +51,7 @@
 }
 
 closedir($handle);
-   chmod($directory, 0777);
+   @chmod($directory, 0777);
 rmdir($directory);
 
 return TRUE;



-- 
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) /win32/build config.w32

2008-04-24 Thread Steph Fox
sfoxThu Apr 24 16:04:59 2008 UTC

  Modified files:  (Branch: PHP_5_3)
/php-src/win32/buildconfig.w32 
  Log:
  - re2c requirement update
  (sorry, I thought I'd committed this ages ago)
  
http://cvs.php.net/viewvc.cgi/php-src/win32/build/config.w32?r1=1.40.2.8.2.10.2.14r2=1.40.2.8.2.10.2.15diff_format=u
Index: php-src/win32/build/config.w32
diff -u php-src/win32/build/config.w32:1.40.2.8.2.10.2.14 
php-src/win32/build/config.w32:1.40.2.8.2.10.2.15
--- php-src/win32/build/config.w32:1.40.2.8.2.10.2.14   Mon Mar 31 00:28:16 2008
+++ php-src/win32/build/config.w32  Thu Apr 24 16:04:59 2008
@@ -1,5 +1,5 @@
 // vim:ft=javascript
-// $Id: config.w32,v 1.40.2.8.2.10.2.14 2008/03/31 00:28:16 sfox Exp $
+// $Id: config.w32,v 1.40.2.8.2.10.2.15 2008/04/24 16:04:59 sfox Exp $
 // Master config file; think of it as a configure.in
 // equivalent.
 
@@ -58,7 +58,7 @@
 }
 
 // There's a minimum requirement for re2c..
-MINRE2C = 0.13.3;
+MINRE2C = 0.13.4;
 
 RE2C = PATH_PROG('re2c');
 if (RE2C) {



-- 
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/standard/tests/file open_basedir_copy_variation1.phpt

2008-04-24 Thread Ant Phillips
ant Thu Apr 24 16:40:52 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/fileopen_basedir_copy_variation1.phpt 
  Log:
  Extra open_basedir tests
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/open_basedir_copy_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/file/open_basedir_copy_variation1.phpt
+++ php-src/ext/standard/tests/file/open_basedir_copy_variation1.phpt



-- 
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/standard/tests/file open_basedir_copy_variation1.phpt

2008-04-24 Thread Ant Phillips
ant Thu Apr 24 16:40:53 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/fileopen_basedir_copy_variation1.phpt 
  Log:
  Extra open_basedir tests
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/open_basedir_copy_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/file/open_basedir_copy_variation1.phpt
+++ php-src/ext/standard/tests/file/open_basedir_copy_variation1.phpt



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



[PHP-CVS] cvs: php-src /ext/standard/tests/file open_basedir_copy_variation1.phpt

2008-04-24 Thread Ant Phillips
ant Thu Apr 24 16:40:54 2008 UTC

  Modified files:  
/php-src/ext/standard/tests/fileopen_basedir_copy_variation1.phpt 
  Log:
  Extra open_basedir tests
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/open_basedir_copy_variation1.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/file/open_basedir_copy_variation1.phpt
diff -u /dev/null 
php-src/ext/standard/tests/file/open_basedir_copy_variation1.phpt:1.2
--- /dev/null   Thu Apr 24 16:40:54 2008
+++ php-src/ext/standard/tests/file/open_basedir_copy_variation1.phpt   Thu Apr 
24 16:40:54 2008
@@ -0,0 +1,35 @@
+--TEST--
+Test open_basedir configuration
+--INI--
+open_basedir=.
+--FILE--
+?php
+require_once open_basedir.inc;
+test_open_basedir_before(copy);
+$directory = dirname(__FILE__);
+
+var_dump(copy(../bad/bad.txt, copy.txt));
+var_dump(unlink(copy.txt));
+
+test_open_basedir_after(copy);
+?
+--CLEAN--
+?php
+require_once open_basedir.inc;
+delete_directories();
+?
+--EXPECTF--
+*** Testing open_basedir configuration [copy] ***
+bool(true)
+bool(true)
+bool(true)
+bool(true)
+bool(true)
+
+Warning: copy(): open_basedir restriction in effect. File(../bad/bad.txt) is 
not within the allowed path(s): (.) in %s on line %d
+bool(false)
+
+Warning: unlink(copy.txt): No such file or directory in %s on line %d
+bool(false)
+*** Finished testing open_basedir configuration [copy] ***
+



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