Searched defs:filename (Results 1 - 25 of 85) 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";
H A Dset_compression.php8 $filename = "a.zip"; variable
10 if (!$zip->open($filename, ZIPARCHIVE::CREATE | ZipArchive::OVERWRITE)) {
11 exit("cannot open <$filename>\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/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/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/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();
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
66 ZEND_API int zend_prepare_string_for_scanning(zval *str, char *filename);
H A Dzend_stream.c128 ZEND_API int zend_stream_open(const char *filename, zend_file_handle *handle) /* {{{ */ argument
131 return zend_stream_open_function(filename, handle);
135 handle->handle.fp = zend_fopen(filename, &handle->opened_path);
136 handle->filename = filename;
186 if (zend_stream_open(file_handle->filename, file_handle) == 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);
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_loaddata.c30 int mysqlnd_local_infile_init(void ** ptr, const char * const filename) argument
46 if (php_check_open_basedir_ex(filename, 0) == -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) argument
173 if (infile.local_infile_init(&info, (char *)filename)) {
/PHP_TRUNK/ext/standard/
H A Dmail.c216 void php_mail_log_to_file(char *filename, char *message, size_t message_size) { argument
219 php_stream *stream = php_stream_open_wrapper(filename, "a", flags, NULL);
H A Ddl.c56 char *filename; local
59 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &filename, &filename_len) == FAILURE) {
73 php_dl(filename, MODULE_TEMPORARY, return_value, 0);
90 PHPAPI int php_load_extension(char *filename, int type, int start_now) argument
111 /* Check if passed filename contains directory separators */
112 if (strchr(filename, '/') != NULL || strchr(filename, DEFAULT_SLASH) != NULL) {
115 php_error_docref(NULL, E_WARNING, "Temporary module name should contain only filename");
118 libpath = estrdup(filename);
123 spprintf(&libpath, 0, "%s%s", extension_dir, filename); /* SAF
[all...]
H A Dassert.c219 const char *filename = zend_get_executed_filename(); local
221 ZVAL_STRING(&args[0], SAFE_STRING(filename));
/PHP_TRUNK/sapi/apache2handler/
H A Dphp_functions.c59 static request_rec *php_apache_lookup_uri(char *filename) argument
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(), "p", &filename, &filename_len) == FAILURE) {
82 if (!(rr = php_apache_lookup_uri(filename))) {
83 php_error_docref(NULL, E_WARNING, "Unable to include '%s' - URI lookup failed", filename);
88 php_error_docref(NULL, E_WARNING, "Unable to include '%s' - error finding URI", filename);
102 php_error_docref(NULL, E_WARNING, "Unable to include '%s' - request execution failed", filename);
121 char *filename; local
[all...]
/PHP_TRUNK/ext/soap/
H A Dphp_xml.c80 xmlDocPtr soap_xmlParseFile(const char *filename) argument
92 ctxt = xmlCreateFileParserCtxt(filename);
/PHP_TRUNK/ext/opcache/
H A Dzend_accelerator_blacklist.c225 static void zend_accel_blacklist_loadone(zend_blacklist *blacklist, char *filename) argument
227 void zend_accel_blacklist_load(zend_blacklist *blacklist, char *filename)
234 if ((fp = fopen(filename, "r")) == NULL) {
235 zend_accel_error(ACCEL_LOG_WARNING, "Cannot load blacklist file: %s\n", filename);
239 zend_accel_error(ACCEL_LOG_DEBUG,"Loading blacklist file: '%s'", filename);
241 if (VCWD_REALPATH(filename, buf)) {
311 void zend_accel_blacklist_load(zend_blacklist *blacklist, char *filename) argument
319 ret = glob(filename, 0, NULL, &globbuf);
325 zend_accel_error(ACCEL_LOG_WARNING, "No blacklist file found matching: %s\n", 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/sapi/phpdbg/
H A Dphpdbg_list.h44 char *filename; member in struct:__anon16
H A Dphpdbg_list.c110 if (ce->info.user.filename) {
111 phpdbg_list_file(ce->info.user.filename, ce->info.user.line_end - ce->info.user.line_start + 1, ce->info.user.line_start, 0);
125 void phpdbg_list_file(zend_string *filename, uint count, int offset, uint highlight) /* {{{ */ argument
132 if (VCWD_REALPATH(filename->val, resolved_path_buf)) {
135 abspath = filename->val;
154 phpdbg_xml("<list %r file=\"%s\">", filename);
190 phpdbg_list_file(ops->filename, ops->line_end - ops->line_start + 1, ops->line_start, 0);
238 char *filename = (char *)(file->opened_path ? file->opened_path->val : file->filename); local
245 data.filename
281 zend_hash_str_add_ptr(&PHPDBG_G(file_sources), filename, strlen(filename), dataptr); local
[all...]
/PHP_TRUNK/main/
H A Drfc1867.h49 char **filename; member in struct:_multipart_event_file_start
/PHP_TRUNK/ext/zip/
H A Dzip_stream.c212 php_stream *php_stream_zip_open(const char *filename, const char *path, const char *mode STREAMS_DC) argument
225 if (filename) {
226 if (ZIP_OPENBASEDIR_CHECKPATH(filename)) {
231 stream_za = zip_open(filename, ZIP_CREATE, &err);
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)
55 #define ZIP_OPENBASEDIR_CHECKPATH(filename) \
56 php_check_open_basedir(filename)
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);

Completed in 15 milliseconds

1234