Searched defs:filename (Results 1 - 25 of 88) sorted by relevance

1234

/PHP_TRUNK/ext/zip/examples/
H A Dcreate.php9 $filename = "./test112.zip"; variable
11 if (!$zip->open($filename, ZIPARCHIVE::CREATE)) {
12 exit("cannot open <$filename>\n");
14 echo "file <$filename> OK\n";
/PHP_TRUNK/scripts/dev/generate-phpt/src/
H A DgtCodeSnippet.php18 $filename = dirname(__FILE__) . '/codeSnippets/' . $name . '.txt'; variable
20 if (!file_exists($filename)) {
24 $lines = file($filename);
40 $filename = dirname(__FILE__) . '/codeSnippets/' . $name . '.txt'; variable
42 if (!file_exists($filename)) {
46 $text = file($filename);
H A DgtText.php17 $filename = dirname(__FILE__) . '/texts/' . $name . '.txt'; variable
19 if (!file_exists($filename)) {
23 return file_get_contents($filename);
/PHP_TRUNK/ext/fileinfo/libmagic/
H A Dapptype.c5 * Notes: 1. Qualify the filename so that DosQueryAppType does not do extraneous
13 * 3. apptype() uses the filename if given, otherwise a tmp file is created with
51 char *filename; local
55 filename = strdup(fn);
56 else if ((filename = tempnam("./", "tmp")) == NULL) {
60 /* qualify the filename to prevent extraneous searches */
61 _splitpath(filename, drive, dir, fname, ext);
84 free(filename);
/PHP_TRUNK/ext/gd/libgd/
H A Dgdtest.c5 unlink (const char *filename) argument
7 return _unlink (filename);
35 fprintf (stderr, "Usage: gdtest filename.png\n");
H A Dtestac.c14 char *filename);
31 fprintf (stderr, "Usage: testac filename.png\n");
76 char *filename)
110 out = fopen (filename, "wb");
71 testDrawing( gdImagePtr im_in, double scale, int blending, int palette, char *filename) argument
H A Dgdxpm.c18 gdImagePtr gdImageCreateFromXpm (char *filename) argument
30 ret = XpmReadFileToXpmImage(filename, &image, &info);
/PHP_TRUNK/Zend/
H A Dzend_dtrace.c35 return ex->func->op_array.filename->val;
44 DTRACE_COMPILE_FILE_ENTRY(file_handle->opened_path, (char *)file_handle->filename);
46 DTRACE_COMPILE_FILE_RETURN(file_handle->opened_path, (char *)file_handle->filename);
55 const char *scope, *filename, *funcname, *classname; local
56 scope = filename = funcname = classname = NULL;
58 /* we need filename and lineno for both execute and function probes */
61 filename = dtrace_get_executed_filename(TSRMLS_C);
71 DTRACE_EXECUTE_ENTRY((char *)filename, lineno);
75 DTRACE_FUNCTION_ENTRY((char *)funcname, (char *)filename, lineno, (char *)classname, (char *)scope);
81 DTRACE_FUNCTION_RETURN((char *)funcname, (char *)filename, linen
92 const char *filename; local
[all...]
H A Dzend_language_scanner.h38 zend_string *filename; member in struct:_zend_lex_state
63 ZEND_API int zend_prepare_string_for_scanning(zval *str, char *filename TSRMLS_DC);
H A Dzend_stream.c128 ZEND_API int zend_stream_open(const char *filename, zend_file_handle *handle TSRMLS_DC) /* {{{ */ argument
131 return zend_stream_open_function(filename, handle TSRMLS_CC);
135 handle->handle.fp = zend_fopen(filename, &handle->opened_path TSRMLS_CC);
136 handle->filename = filename;
186 if (zend_stream_open(file_handle->filename, file_handle TSRMLS_CC) == FAILURE) {
328 if (fh->free_filename && fh->filename) {
329 efree((char*)fh->filename);
330 fh->filename = NULL;
H A Dzend_stream.h71 const char *filename; member in struct:_zend_file_handle
78 ZEND_API int zend_stream_open(const char *filename, zend_file_handle *handle TSRMLS_DC);
/PHP_TRUNK/ext/opcache/
H A Dzend_accelerator_module.c281 static int filename_is_in_cache(char *filename, int filename_len TSRMLS_DC) argument
288 handle.filename = filename;
291 if (IS_ABSOLUTE_PATH(filename, filename_len)) {
292 persistent_script = zend_accel_hash_find(&ZCSG(hash), filename, filename_len);
709 handle.filename = script_name;
720 zend_error(E_WARNING, ACCELERATOR_PRODUCT_NAME " could not compile file %s", handle.filename);
H A Dzend_accelerator_blacklist.c232 static void zend_accel_blacklist_loadone(zend_blacklist *blacklist, char *filename) argument
234 void zend_accel_blacklist_load(zend_blacklist *blacklist, char *filename)
242 if ((fp = fopen(filename, "r")) == NULL) {
243 zend_accel_error(ACCEL_LOG_WARNING, "Cannot load blacklist file: %s\n", filename);
247 zend_accel_error(ACCEL_LOG_DEBUG,"Loading blacklist file: '%s'", filename);
249 if (VCWD_REALPATH(filename, buf)) {
319 void zend_accel_blacklist_load(zend_blacklist *blacklist, char *filename) argument
327 ret = glob(filename, 0, NULL, &globbuf);
333 zend_accel_error(ACCEL_LOG_WARNING, "No blacklist file found matching: %s\n", filename);
/PHP_TRUNK/ext/ftp/
H A Dphp_ftp.c104 ZEND_ARG_INFO(0, filename)
203 ZEND_ARG_INFO(0, filename)
208 ZEND_ARG_INFO(0, filename)
601 /* {{{ proto int ftp_chmod(resource stream, int mode, string filename)
607 char *filename; local
611 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rlp", &z_ftp, &mode, &filename, &filename_len) == FAILURE) {
617 if (!ftp_chmod(ftp, mode, filename, filename_len)) {
1234 /* {{{ proto int ftp_size(resource stream, string filename)
1254 /* {{{ proto int ftp_mdtm(resource stream, string filename)
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_loaddata.c30 int mysqlnd_local_infile_init(void ** ptr, const char * const filename TSRMLS_DC)
46 if (php_check_open_basedir_ex(filename, 0 TSRMLS_CC) == -1) {
53 info->filename = filename;
54 info->fd = php_stream_open_wrapper_ex((char *)filename, "r", 0, NULL, context);
57 snprintf((char *)info->error_msg, sizeof(info->error_msg), "Can't find file '%-.64s'.", filename);
144 mysqlnd_handle_local_infile(MYSQLND_CONN_DATA * conn, const char * filename, zend_bool * is_warning TSRMLS_DC) argument
173 if (infile.local_infile_init(&info, (char *)filename TSRMLS_CC)) {
/PHP_TRUNK/ext/zip/
H A Dphp_zip.h50 /* {{{ ZIP_OPENBASEDIR_CHECKPATH(filename) */
52 # define ZIP_OPENBASEDIR_CHECKPATH(filename) \
53 (PG(safe_mode) && (!php_checkuid(filename, NULL, CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_basedir(filename TSRMLS_CC)
55 #define ZIP_OPENBASEDIR_CHECKPATH(filename) \
56 php_check_open_basedir(filename TSRMLS_CC)
81 char *filename; member in struct:_ze_zip_object
94 php_stream *php_stream_zip_open(const char *filename, const char *path, const char *mode STREAMS_DC TSRMLS_DC);
H A Dzip_stream.c203 php_stream *php_stream_zip_open(const char *filename, const char *path, const char *mode STREAMS_DC TSRMLS_DC) argument
216 if (filename) {
217 if (ZIP_OPENBASEDIR_CHECKPATH(filename)) {
222 stream_za = zip_open(filename, ZIP_CREATE, &err);
/PHP_TRUNK/main/
H A Drfc1867.h49 char **filename; member in struct:_multipart_event_file_start
/PHP_TRUNK/sapi/apache/
H A Dphp_apache.c68 ZEND_ARG_INFO(0, filename)
337 /* {{{ proto bool virtual(string filename)
349 char *filename; local
353 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &filename, &filename_len) == FAILURE) {
357 if (!(rr = sub_req_lookup_uri (filename, ((request_rec *) SG(server_context))))) {
358 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to include '%s' - URI lookup failed", filename);
365 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to include '%s' - error finding URI", filename);
375 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to include '%s' - request execution failed", filename);
461 char *filename; local
465 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename,
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_list.c108 if ((*ce)->info.user.filename) {
110 (*ce)->info.user.filename,
127 void phpdbg_list_file(const char *filename, long count, long offset, int highlight TSRMLS_DC) /* {{{ */ argument
136 if (VCWD_STAT(filename, &st) == FAILURE) {
137 phpdbg_error("Failed to stat file %s", filename);
141 stream = php_stream_open_wrapper(filename, "rb", USE_PATH, &opened);
144 phpdbg_error("Failed to open file %s to list", filename);
193 phpdbg_list_file(ops->filename,
/PHP_TRUNK/scripts/dev/
H A Dcheck_parameters.php68 $filename = substr($current_file, strlen(PHPDIR)+1); variable
70 $filename = $current_file; variable
72 echo $filename , " [$line] $current_function : $str\n";
/PHP_TRUNK/sapi/apache2filter/
H A Dphp_functions.c46 static request_rec *php_apache_lookup_uri(char *filename TSRMLS_DC)
50 if (!filename) {
55 return ap_sub_req_lookup_uri(filename, ctx->f->r, ctx->f->next);
62 char *filename; local
66 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &filename, &filename_len) == FAILURE) {
70 if (!(rr = php_apache_lookup_uri(filename TSRMLS_CC))) {
71 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to include '%s' - URI lookup failed", filename);
77 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to include '%s' - request execution failed", filename);
85 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to include '%s' - error finding URI", filename);
101 char *filename; local
[all...]
/PHP_TRUNK/sapi/apache2handler/
H A Dphp_functions.c59 static request_rec *php_apache_lookup_uri(char *filename TSRMLS_DC)
63 if (!filename || !ctx || !ctx->r) {
67 return ap_sub_req_lookup_uri(filename, ctx->r, ctx->r->output_filters);
74 char *filename; local
78 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &filename, &filename_len) == FAILURE) {
82 if (!(rr = php_apache_lookup_uri(filename TSRMLS_CC))) {
83 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to include '%s' - URI lookup failed", filename);
88 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to include '%s' - error finding URI", filename);
102 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to include '%s' - request execution failed", filename);
121 char *filename; local
[all...]
/PHP_TRUNK/ext/standard/
H A Dassert.c206 const char *filename = zend_get_executed_filename(TSRMLS_C); local
208 ZVAL_STRING(&args[0], SAFE_STRING(filename));
H A Ddl.c56 char *filename; local
59 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) {
78 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Not supported in multithreaded Web servers - use extension=%s in your php.ini", filename);
81 php_error_docref(NULL TSRMLS_CC, E_DEPRECATED, "dl() is deprecated - use extension=%s in your php.ini", filename);
85 php_dl(filename, MODULE_TEMPORARY, return_value, 0 TSRMLS_CC);
102 PHPAPI int php_load_extension(char *filename, int type, int start_now TSRMLS_DC) argument
123 /* Check if passed filename contains directory separators */
124 if (strchr(filename, '/') != NULL || strchr(filename, DEFAULT_SLASH) != NULL) {
127 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Temporary module name should contain only filename");
[all...]

Completed in 49 milliseconds

1234