@@ -561,7 +561,7 @@ PHPAPI void php_log_err(char *log_message TSRMLS_DC)
561
561
#ifdef PHP_WIN32
562
562
php_flock (fd , 2 );
563
563
#endif
564
- write (fd , tmp , len );
564
+ php_ignore_value ( write (fd , tmp , len ) );
565
565
efree (tmp );
566
566
efree (error_time_str );
567
567
close (fd );
@@ -2301,7 +2301,7 @@ PHPAPI int php_execute_script(zend_file_handle *primary_file TSRMLS_DC)
2301
2301
/* this looks nasty to me */
2302
2302
old_cwd_fd = open ("." , 0 );
2303
2303
#else
2304
- VCWD_GETCWD (old_cwd , OLD_CWD_SIZE - 1 );
2304
+ php_ignore_value ( VCWD_GETCWD (old_cwd , OLD_CWD_SIZE - 1 ) );
2305
2305
#endif
2306
2306
VCWD_CHDIR_FILE (primary_file -> filename );
2307
2307
}
@@ -2360,7 +2360,7 @@ PHPAPI int php_execute_script(zend_file_handle *primary_file TSRMLS_DC)
2360
2360
}
2361
2361
#else
2362
2362
if (old_cwd [0 ] != '\0' ) {
2363
- VCWD_CHDIR (old_cwd );
2363
+ php_ignore_value ( VCWD_CHDIR (old_cwd ) );
2364
2364
}
2365
2365
free_alloca (old_cwd , use_heap );
2366
2366
#endif
@@ -2390,14 +2390,14 @@ PHPAPI int php_execute_simple_script(zend_file_handle *primary_file, zval **ret
2390
2390
PG (during_request_startup ) = 0 ;
2391
2391
2392
2392
if (primary_file -> filename && !(SG (options ) & SAPI_OPTION_NO_CHDIR )) {
2393
- VCWD_GETCWD (old_cwd , OLD_CWD_SIZE - 1 );
2393
+ php_ignore_value ( VCWD_GETCWD (old_cwd , OLD_CWD_SIZE - 1 ) );
2394
2394
VCWD_CHDIR_FILE (primary_file -> filename );
2395
2395
}
2396
2396
zend_execute_scripts (ZEND_REQUIRE TSRMLS_CC , ret , 1 , primary_file );
2397
2397
} zend_end_try ();
2398
2398
2399
2399
if (old_cwd [0 ] != '\0' ) {
2400
- VCWD_CHDIR (old_cwd );
2400
+ php_ignore_value ( VCWD_CHDIR (old_cwd ) );
2401
2401
}
2402
2402
2403
2403
free_alloca (old_cwd , use_heap );
0 commit comments