Lines Matching refs:p

91     char *p;  in init_sapi_from_env()  local
92 p = getenv("LSPHPRC"); in init_sapi_from_env()
93 if (p) in init_sapi_from_env()
94 sapi_module->php_ini_path_override = p; in init_sapi_from_env()
218 char **env, *p, *t = buf; in litespeed_php_import_environment_variables() local
240 p = strchr(*env, '='); in litespeed_php_import_environment_variables()
241 if (!p) { /* malformed entry? */ in litespeed_php_import_environment_variables()
244 nlen = p - *env; in litespeed_php_import_environment_variables()
251 add_variable(t, nlen, p + 1, strlen( p + 1 ), array_ptr); in litespeed_php_import_environment_variables()
649 char *p; in lsapi_execute_script() local
654 p = argv0; in lsapi_execute_script()
655 *p++ = ':'; in lsapi_execute_script()
661 memccpy( p, SG(request_info).path_translated + len, 0, 46 ); in lsapi_execute_script()
1167 char ** p = &argv[1]; in parse_opt() local
1170 while (( p < argend )&&(**p == '-' )) { in parse_opt()
1171 c = *((*p)+1); in parse_opt()
1172 ++p; in parse_opt()
1175 if ( p >= argend ) { in parse_opt()
1179 *php_bind = strdup(*p++); in parse_opt()
1183 if ( p >= argend ) { in parse_opt()
1188 *php_ini_path = strdup( *p++ ); in parse_opt()
1197 if ( *((*(p-1))+2) == 's' ) in parse_opt()
1209 if ( p - argv < argc ) { in parse_opt()
1230 char ** p = &argv[1]; in cli_main() local
1255 while (( p < argend )&&(**p == '-' )) { in cli_main()
1256 c = *((*p)+1); in cli_main()
1257 ++p; in cli_main()
1290 ++p; in cli_main()
1307 if ( *p ) { in cli_main()
1309 zend_stream_init_fp(&file_handle, VCWD_FOPEN(*p, "rb"), NULL); in cli_main()
1313 script_filename = *p; in cli_main()
1314 php_self = *p; in cli_main()
1316 SG(request_info).path_translated = estrdup(*p); in cli_main()
1317 SG(request_info).argc = argc - (p - argv); in cli_main()
1318 SG(request_info).argv = p; in cli_main()
1330 file_handle.filename = zend_string_init(*p, strlen(*p), 0); in cli_main()
1340 file_handle.filename = zend_string_init(*p, strlen(*p), 0); in cli_main()
1350 php_printf("Could not open input file: %s.\n", *p); in cli_main()
1429 char * p; in setArgv0() local
1432 p = argv0; in setArgv0()
1433 while(( p > argv[0] )&&( p[-1] != '/')) in setArgv0()
1434 --p; in setArgv0()
1435 if ( p > argv[0] ) in setArgv0()
1437 memmove( argv[0], p, argv0 - p ); in setArgv0()
1438 memset( argv[0] + ( argv0 - p ), 0, p - argv[0] ); in setArgv0()
1439 argv0 = argv[0] + (argv0 - p); in setArgv0()
1609 const char *p = getenv("LSPHP_ENABLE_USER_INI"); in PHP_MINIT_FUNCTION() local
1610 if (p && 0 == strcasecmp(p, "on")) in PHP_MINIT_FUNCTION()
1613 p = getenv("LSAPI_CLEAN_SHUTDOWN"); in PHP_MINIT_FUNCTION()
1614 if (p) { in PHP_MINIT_FUNCTION()
1615 if (*p == '1' || 0 == strcasecmp(p, "on")) in PHP_MINIT_FUNCTION()
1617 else if (*p == '0' || 0 == strcasecmp(p, "off")) in PHP_MINIT_FUNCTION()
1680 char * p; in PHP_FUNCTION() local
1696 p = strchr( h->header, ':' ); in PHP_FUNCTION()
1697 len = p - h->header; in PHP_FUNCTION()
1698 if (p && len > 0 && len < LSAPI_RESP_HTTP_HEADER_MAX) { in PHP_FUNCTION()
1705 while( isspace(*++p)); in PHP_FUNCTION()
1706 add_assoc_string_ex(return_value, headerBuf, len, p); in PHP_FUNCTION()