@@ -1504,26 +1504,26 @@ PHP_FUNCTION(copy)
1504
1504
/* }}} */
1505
1505
1506
1506
/* {{{ php_copy_file */
1507
- PHPAPI int php_copy_file (const char * src , const char * dest )
1507
+ PHPAPI zend_result php_copy_file (const char * src , const char * dest )
1508
1508
{
1509
1509
return php_copy_file_ctx (src , dest , 0 , NULL );
1510
1510
}
1511
1511
/* }}} */
1512
1512
1513
1513
/* {{{ php_copy_file_ex */
1514
- PHPAPI int php_copy_file_ex (const char * src , const char * dest , int src_flg )
1514
+ PHPAPI zend_result php_copy_file_ex (const char * src , const char * dest , int src_flags )
1515
1515
{
1516
- return php_copy_file_ctx (src , dest , src_flg , NULL );
1516
+ return php_copy_file_ctx (src , dest , src_flags , NULL );
1517
1517
}
1518
1518
/* }}} */
1519
1519
1520
1520
/* {{{ php_copy_file_ctx */
1521
- PHPAPI int php_copy_file_ctx (const char * src , const char * dest , int src_flg , php_stream_context * ctx )
1521
+ PHPAPI zend_result php_copy_file_ctx (const char * src , const char * dest , int src_flags , php_stream_context * ctx )
1522
1522
{
1523
1523
php_stream * srcstream = NULL , * deststream = NULL ;
1524
- int ret = FAILURE ;
1524
+ zend_result ret = FAILURE ;
1525
1525
php_stream_statbuf src_s , dest_s ;
1526
- int src_stat_flags = (src_flg & STREAM_DISABLE_OPEN_BASEDIR ) ? PHP_STREAM_URL_STAT_IGNORE_OPEN_BASEDIR : 0 ;
1526
+ int src_stat_flags = (src_flags & STREAM_DISABLE_OPEN_BASEDIR ) ? PHP_STREAM_URL_STAT_IGNORE_OPEN_BASEDIR : 0 ;
1527
1527
1528
1528
switch (php_stream_stat_path_ex (src , src_stat_flags , & src_s , ctx )) {
1529
1529
case -1 :
@@ -1590,7 +1590,7 @@ PHPAPI int php_copy_file_ctx(const char *src, const char *dest, int src_flg, php
1590
1590
}
1591
1591
safe_to_copy :
1592
1592
1593
- srcstream = php_stream_open_wrapper_ex (src , "rb" , src_flg | REPORT_ERRORS , NULL , ctx );
1593
+ srcstream = php_stream_open_wrapper_ex (src , "rb" , src_flags | REPORT_ERRORS , NULL , ctx );
1594
1594
1595
1595
if (!srcstream ) {
1596
1596
return ret ;
0 commit comments