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

1234

/PHP_5_5/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_5_5/ext/zip/
H A Dzip_stream.c188 php_stream *php_stream_zip_open(char *filename, char *path, char *mode STREAMS_DC TSRMLS_DC) argument
201 if (filename) {
202 if (ZIP_OPENBASEDIR_CHECKPATH(filename)) {
207 stream_za = zip_open(filename, ZIP_CREATE, &err);
H A Dphp_zip.h46 /* {{{ ZIP_OPENBASEDIR_CHECKPATH(filename) */
48 # define ZIP_OPENBASEDIR_CHECKPATH(filename) \
49 (PG(safe_mode) && (!php_checkuid(filename, NULL, CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_basedir(filename TSRMLS_CC)
51 #define ZIP_OPENBASEDIR_CHECKPATH(filename) \
52 php_check_open_basedir(filename TSRMLS_CC)
80 char *filename; member in struct:_ze_zip_object
85 php_stream *php_stream_zip_open(char *filename, char *path, char *mode STREAMS_DC TSRMLS_DC);
/PHP_5_5/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_5_5/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_5_5/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_5_5/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_5_5/Zend/
H A Dzend_dtrace.c30 return EG(current_execute_data)->op_array->filename;
39 DTRACE_COMPILE_FILE_ENTRY(file_handle->opened_path, (char *)file_handle->filename);
41 DTRACE_COMPILE_FILE_RETURN(file_handle->opened_path, (char *)file_handle->filename);
50 const char *scope, *filename, *funcname, *classname; local
51 scope = filename = funcname = classname = NULL;
53 /* we need filename and lineno for both execute and function probes */
56 filename = dtrace_get_executed_filename(TSRMLS_C);
66 DTRACE_EXECUTE_ENTRY((char *)filename, lineno);
70 DTRACE_FUNCTION_ENTRY((char *)funcname, (char *)filename, lineno, (char *)classname, (char *)scope);
76 DTRACE_FUNCTION_RETURN((char *)funcname, (char *)filename, linen
87 const char *filename; local
[all...]
H A Dzend_language_scanner.h38 char *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.c129 ZEND_API int zend_stream_open(const char *filename, zend_file_handle *handle TSRMLS_DC) /* {{{ */ argument
132 return zend_stream_open_function(filename, handle TSRMLS_CC);
136 handle->handle.fp = zend_fopen(filename, &handle->opened_path TSRMLS_CC);
137 handle->filename = filename;
187 if (zend_stream_open(file_handle->filename, file_handle TSRMLS_CC) == FAILURE) {
329 if (fh->free_filename && fh->filename) {
330 efree((char*)fh->filename);
331 fh->filename = NULL;
H A Dzend_stream.h64 const char *filename; member in struct:_zend_file_handle
75 ZEND_API int zend_stream_open(const char *filename, zend_file_handle *handle TSRMLS_DC);
/PHP_5_5/ext/opcache/
H A Dzend_accelerator_blacklist.c241 static void zend_accel_blacklist_loadone(zend_blacklist *blacklist, char *filename) argument
243 void zend_accel_blacklist_load(zend_blacklist *blacklist, char *filename)
251 if ((fp = fopen(filename, "r")) == NULL) {
252 zend_accel_error(ACCEL_LOG_WARNING, "Cannot load blacklist file: %s\n", filename);
256 zend_accel_error(ACCEL_LOG_DEBUG,"Loading blacklist file: '%s'", filename);
258 if (VCWD_REALPATH(filename, buf)) {
332 void zend_accel_blacklist_load(zend_blacklist *blacklist, char *filename) argument
340 ret = glob(filename, 0, NULL, &globbuf);
346 zend_accel_error(ACCEL_LOG_WARNING, "No blacklist file found matching: %s\n", filename);
/PHP_5_5/ext/pdo_sqlite/
H A Dsqlite_driver.c761 static char *make_filename_safe(const char *filename TSRMLS_DC)
763 if (*filename && memcmp(filename, ":memory:", sizeof(":memory:"))) {
764 char *fullpath = expand_filepath(filename, NULL TSRMLS_CC);
776 return estrdup(filename);
782 char *filename; local
786 filename = make_filename_safe(arg4 TSRMLS_CC);
787 if (!filename) {
790 efree(filename);
796 filename
815 char *filename; local
[all...]
/PHP_5_5/ext/standard/
H A Dassert.c207 const char *filename = zend_get_executed_filename(TSRMLS_C); local
213 ZVAL_STRING(args[0], SAFE_STRING(filename), 1);
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...]
H A Dmail.c215 void php_mail_log_to_file(char *filename, char *message, size_t message_size TSRMLS_DC) { argument
218 php_stream *stream = php_stream_open_wrapper(filename, "a", flags, NULL);
/PHP_5_5/main/
H A Drfc1867.h49 char **filename; member in struct:_multipart_event_file_start
/PHP_5_5/ext/ftp/
H A Dphp_ftp.c104 ZEND_ARG_INFO(0, filename)
203 ZEND_ARG_INFO(0, filename)
208 ZEND_ARG_INFO(0, filename)
600 /* {{{ proto int ftp_chmod(resource stream, int mode, string filename)
606 char *filename; local
610 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rlp", &z_ftp, &mode, &filename, &filename_len) == FAILURE) {
616 if (!ftp_chmod(ftp, mode, filename, filename_len)) {
1231 /* {{{ proto int ftp_size(resource stream, string filename)
1251 /* {{{ proto int ftp_mdtm(resource stream, string filename)
/PHP_5_5/ext/mysqlnd/
H A Dmysqlnd_loaddata.c30 int mysqlnd_local_infile_init(void ** ptr, char * filename, void ** userdata TSRMLS_DC) argument
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);
158 mysqlnd_handle_local_infile(MYSQLND_CONN_DATA * conn, const char * filename, zend_bool * is_warning TSRMLS_DC) argument
187 if (infile.local_infile_init(&info, (char *)filename, conn->infile.userdata TSRMLS_CC)) {
/PHP_5_5/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_5_5/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_5_5/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...]

Completed in 32 milliseconds

1234