/PHP-7.4/ext/gd/ |
H A D | gd.c | 1068 if (fp->data) { in php_free_gd_font() 1069 efree(fp->data); in php_free_gd_font() 1072 efree(fp); in php_free_gd_font() 2450 FILE * fp = NULL; in _php_image_create_from() local 2519 if (!im && fp) { in _php_image_create_from() 2542 fflush(fp); in _php_image_create_from() 2677 FILE *fp; in _php_image_output() local 2707 if (!fp) { in _php_image_output() 2723 (*func_p)(im, fp); in _php_image_output() 2734 fflush(fp); in _php_image_output() [all …]
|
/PHP-7.4/ext/phar/ |
H A D | phar.c | 249 phar->fp = 0; in PHP_INI_END() 437 …if (idata->fp && idata->fp != idata->phar->fp && idata->fp != idata->phar->ufp && idata->fp != ida… in phar_entry_delref() 463 …if (idata->fp && idata->fp != idata->phar->fp && idata->fp != idata->phar->ufp && idata->fp != ida… in phar_entry_remove() 481 if (fp) {\ 1209 mydata->fp = fp; in phar_parse_pharfile() 1221 fp = NULL; in phar_parse_pharfile() 1363 if (fp) { in phar_create_or_parse_filename() 1520 if (!fp) { in phar_open_from_filename() 2316 if (!fp) { in phar_open_executed_filename() 2348 php_stream *fp = idata->fp; in phar_postprocess_file() local [all …]
|
H A D | phar_object.c | 184 if (!fp) { in phar_file_action() 1441 if (!fp) { in phar_build() 1616 if (!fp) { in phar_build() 2165 pphar->fp = phar->fp; in phar_rename_archive() 3952 fp = phar_obj->archive->fp; in PHP_METHOD() 3990 fp = phar_obj->archive->fp; in PHP_METHOD() 3995 if (!fp) { in PHP_METHOD() 4006 if (fp != phar_obj->archive->fp) { in PHP_METHOD() 4020 if (fp != phar_obj->archive->fp) { in PHP_METHOD() 4273 if (!fp) { in phar_extract_file() [all …]
|
/PHP-7.4/ext/pgsql/ |
H A D | pgsql.c | 3162 FILE *fp = NULL; local 3187 if (FAILURE == php_stream_cast(stream, PHP_STREAM_AS_STDIO, (void**)&fp, REPORT_ERRORS)) { 3192 PQtrace(pgsql, fp);
|
/PHP-7.4/sapi/fpm/tests/ |
H A D | tester.inc | 446 $fp = @fsockopen($host, $this->getPort()); 447 } while ((++$i < $attempts) && !$fp); 449 if ($fp) { 451 fclose($fp);
|
/PHP-7.4/main/streams/ |
H A D | cast.c | 349 FILE *fp = NULL; in _php_stream_open_wrapper_as_file() local 358 …STREAM_AS_STDIO|PHP_STREAM_CAST_TRY_HARD|PHP_STREAM_CAST_RELEASE, (void**)&fp, REPORT_ERRORS) == F… in _php_stream_open_wrapper_as_file() 365 return fp; in _php_stream_open_wrapper_as_file()
|
/PHP-7.4/ext/curl/ |
H A D | interface.c | 202 ch->handlers->read->fp = 0; in _php_curl_verify_handlers() 229 ch->handlers->write->fp = 0; in _php_curl_verify_handlers() 1644 if (t->fp) { in curl_read() 2051 ch->handlers->write->fp = source->handlers->write->fp; in _php_setup_easy_copy_handlers() 2052 ch->handlers->write_header->fp = source->handlers->write_header->fp; in _php_setup_easy_copy_handlers() 2053 ch->handlers->read->fp = source->handlers->read->fp; in _php_setup_easy_copy_handlers() 2760 FILE *fp = NULL; in _php_curl_setopt() local 2773 if (!fp) { in _php_curl_setopt() 2790 ch->handlers->write->fp = fp; in _php_curl_setopt() 2808 ch->handlers->write_header->fp = fp; in _php_curl_setopt() [all …]
|
/PHP-7.4/ext/opcache/ |
H A D | ZendAccelerator.c | 977 if (zend_fstat(fileno(file_handle->handle.fp), &statbuf) == -1) { in zend_get_file_handle_timestamp()
|
H A D | zend_accelerator_blacklist.c | 240 FILE *fp; in zend_accel_blacklist_loadone() local 243 if ((fp = fopen(filename, "r")) == NULL) { in zend_accel_blacklist_loadone() 258 while (fgets(buf, MAXPATHLEN, fp) != NULL) { in zend_accel_blacklist_loadone() 305 fclose(fp); in zend_accel_blacklist_loadone() 312 fclose(fp); in zend_accel_blacklist_loadone()
|
/PHP-7.4/sapi/cli/tests/ |
H A D | bug81305.phpt | 13 $fp = php_cli_server_connect(); 15 if (fwrite($fp, <<<HEADER 23 fpassthru($fp); 26 fclose($fp);
|
H A D | bug73630.phpt | 19 $fp = php_cli_server_connect(); 23 if (fwrite($fp, <<<HEADER 30 while (!feof($fp)) { 31 echo fgets($fp);
|
H A D | bug73630a.phpt | 19 $fp = php_cli_server_connect();
|
H A D | php_cli_server_021.phpt | 13 $fp = php_cli_server_connect(); 15 if(fwrite($fp, <<<HEADER 23 fpassthru($fp);
|
/PHP-7.4/sapi/cli/ |
H A D | php_cli.c | 594 FILE *fp = VCWD_FOPEN(script_file, "rb"); in cli_seek_file_begin() local 595 if (!fp) { in cli_seek_file_begin() 600 zend_stream_init_fp(file_handle, fp, script_file); in cli_seek_file_begin() 931 fclose(file_handle.handle.fp); in do_cli()
|
/PHP-7.4/ext/standard/tests/file/ |
H A D | bug81145.phpt | 28 $fp = fopen($src, "ab"); 29 fwrite($fp, random_bytes(0x200)); 30 fclose($fp);
|
/PHP-7.4/main/ |
H A D | fopen_wrappers.c | 340 FILE *fp; local 345 fp = VCWD_FOPEN(path, mode); 346 if (fp && opened_path) { 354 return fp; 639 FILE *fp; local 702 fp = php_fopen_and_set_opened_path(trypath, mode, opened_path); 703 if (fp) { 705 return fp;
|
/PHP-7.4/ext/pdo_firebird/tests/ |
H A D | payload_server.inc | 47 $fp = fsockopen("tcp://$bound"); 54 if ($fp) { 60 if ($fp) { 61 fclose($fp);
|
/PHP-7.4/ext/ftp/ |
H A D | php_ftp.c | 129 ZEND_ARG_INFO(0, fp) 137 ZEND_ARG_INFO(0, fp) 171 ZEND_ARG_INFO(0, fp) 179 ZEND_ARG_INFO(0, fp)
|
/PHP-7.4/ext/odbc/ |
H A D | php_odbc.c | 1302 int fp; in PHP_FUNCTION() member 1335 params[i].fp = -1; in PHP_FUNCTION() 1344 close(params[i].fp); in PHP_FUNCTION() 1356 close(params[i].fp); in PHP_FUNCTION() 1364 params[i-1].fp = -1; in PHP_FUNCTION() 1388 close(params[i].fp); in PHP_FUNCTION() 1400 close(params[i].fp); in PHP_FUNCTION() 1434 close(params[i].fp); in PHP_FUNCTION() 1455 int fp, nbytes; in PHP_FUNCTION() local 1481 if (params[i].fp != -1) { in PHP_FUNCTION() [all …]
|
/PHP-7.4/ext/dba/ |
H A D | dba.c | 431 if (info->fp && info->fp != info->lock.fp) { in dba_close() 438 if (info->lock.fp) { in dba_close() 904 if (!info->lock.fp) { in php_dba_open() 914 if (!info->lock.fp) { in php_dba_open() 916 if (info->lock.fp) { in php_dba_open() 930 if (!info->lock.fp) { in php_dba_open() 947 info->fp = info->lock.fp; /* use the same stream for locking and database access */ in php_dba_open() 951 if (!info->fp) { in php_dba_open() 974 close_both = (info->fp != info->lock.fp); in php_dba_open() 979 info->fp = NULL; in php_dba_open() [all …]
|
/PHP-7.4/sapi/litespeed/ |
H A D | lsapi_main.c | 1326 if ( file_handle.handle.fp ) { in cli_main() 1335 fclose( file_handle.handle.fp ); in cli_main()
|
H A D | lsapilib.c | 2753 int LSAPI_Init_Prefork_Server( int max_children, fn_select_t fp, int avoidFork ) in LSAPI_Init_Prefork_Server() argument 2770 if ( fp != NULL ) in LSAPI_Init_Prefork_Server() 2771 g_fnSelect = fp; in LSAPI_Init_Prefork_Server() 3940 int LSAPI_Init_Env_Parameters( fn_select_t fp ) in LSAPI_Init_Env_Parameters() argument 4031 LSAPI_Init_Prefork_Server( n, fp, avoidFork != 0 ); in LSAPI_Init_Env_Parameters()
|
/PHP-7.4/ |
H A D | run-tests.php | 921 $fp = fopen("php://stdin", "r+"); 933 $user_input = fgets($fp, 10); 1038 fclose($fp); 1794 if (!feof($fp)) { 1795 $line = fgets($fp); 1811 while (!feof($fp)) { 1812 $line = fgets($fp); 1897 fclose($fp); 3328 $fp = null; 3329 } else if (!$fp = fopen($JUNIT, 'w')) { [all …]
|
/PHP-7.4/sapi/phpdbg/ |
H A D | phpdbg_prompt.c | 320 FILE *fp = fopen(init_file, "r"); in phpdbg_try_file_init() local 321 if (fp) { in phpdbg_try_file_init() 327 while (fgets(cmd, PHPDBG_MAX_CMD, fp) != NULL) { in phpdbg_try_file_init() 335 fclose(fp); in phpdbg_try_file_init()
|
/PHP-7.4/ext/standard/ |
H A D | file.c | 928 FILE *fp; in PHP_FUNCTION() local 948 if (!fp) { in PHP_FUNCTION() 1533 zval *fp; in PHP_NAMED_FUNCTION() local 1538 Z_PARAM_RESOURCE(fp) in PHP_NAMED_FUNCTION() 1547 PHP_STREAM_TO_ZVAL(stream, fp); in PHP_NAMED_FUNCTION() 1562 zval *fp; in PHP_NAMED_FUNCTION() local 1573 Z_PARAM_RESOURCE(fp) in PHP_NAMED_FUNCTION() 1576 PHP_STREAM_TO_ZVAL(stream, fp); in PHP_NAMED_FUNCTION() 1860 zval *fp = NULL, *fields = NULL; in PHP_FUNCTION() local 1866 Z_PARAM_RESOURCE(fp) in PHP_FUNCTION() [all …]
|