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

1234

/PHP_5_3/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_3/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_3/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_3/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_3/win32/build/
H A Dmkdist.php153 function extract_file_from_tarball($pkg, $filename, $dest_dir) /* {{{ */
159 $filename = $name . '/' . $filename; variable
160 $destfilename = $dest_dir . "/" . basename($filename);
183 echo "Checksum for $tarball $hdr[filename] is invalid\n";
189 echo "File: $hdr[filename] $hdr[size]\n";
191 if ($filename == $hdr['filename']) {
322 foreach (glob($ICU_DLLS) as $filename) {
323 copy($filename, "
484 $filename = "$name-$version.tgz"; variable
[all...]
/PHP_5_3/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_3/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 Dgdxpm.c18 gdImagePtr gdImageCreateFromXpm (char *filename) argument
30 ret = XpmReadFileToXpmImage(filename, &image, &info);
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
/PHP_5_3/ext/curl/
H A Dstreams.c269 php_stream *php_curl_stream_opener(php_stream_wrapper *wrapper, char *filename, char *mode, argument
301 curlstream->url = estrdup(filename);
323 if (context && !strncasecmp(filename, "http", sizeof("http")-1)) {
421 } else if (context && !strncasecmp(filename, "ftps", sizeof("ftps")-1)) {
/PHP_5_3/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, "rls", &z_ftp, &mode, &filename, &filename_len) == FAILURE) {
616 if (!ftp_chmod(ftp, mode, filename, filename_len)) {
1227 /* {{{ proto int ftp_size(resource stream, string filename)
1247 /* {{{ proto int ftp_mdtm(resource stream, string filename)
/PHP_5_3/ext/standard/
H A Dassert.c203 char *filename = zend_get_executed_filename(TSRMLS_C); local
209 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) {
81 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Not supported in multithreaded Web servers - use extension=%s in your php.ini", filename);
84 php_error_docref(NULL TSRMLS_CC, E_DEPRECATED, "dl() is deprecated - use extension=%s in your php.ini", filename);
88 php_dl(filename, MODULE_TEMPORARY, return_value, 0 TSRMLS_CC);
105 PHPAPI int php_load_extension(char *filename, int type, int start_now TSRMLS_DC) /* {{{ */ argument
126 /* Check if passed filename contains directory separators */
127 if (strchr(filename, '/') != NULL || strchr(filename, DEFAULT_SLASH) != NULL) {
130 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Temporary module name should contain only filename");
[all...]
/PHP_5_3/main/
H A Drfc1867.h49 char **filename; member in struct:_multipart_event_file_start
H A Dsafe_mode.c48 PHPAPI int php_checkuid_ex(const char *filename, const char *fopen_mode, int mode, int flags) argument
59 if (!filename) {
63 if (strlcpy(filenamecopy, filename, MAXPATHLEN)>=MAXPATHLEN) {
66 filename=(char *)&filenamecopy;
83 strcpy(ftest, filename);
85 strcpy(path, filename);
88 expand_filepath(filename, path TSRMLS_CC);
94 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to access %s", filename);
99 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to access %s", filename);
114 /* Trim off filename */
198 php_checkuid(const char *filename, const char *fopen_mode, int mode) argument
[all...]
/PHP_5_3/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, "s", &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);
463 char *filename; local
467 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename,
[all...]
/PHP_5_3/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, "s", &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_3/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, "s", &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_5_3/Zend/
H A Dzend_language_scanner.h37 char *filename; member in struct:_zend_lex_state
61 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 = (char *)filename;
187 if (zend_stream_open(file_handle->filename, file_handle TSRMLS_CC) == FAILURE) {
330 if (fh->free_filename && fh->filename) {
331 efree(fh->filename);
332 fh->filename = NULL;
H A Dzend_stream.h64 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_3/ext/mysqlnd/
H A Dmysqlnd_loaddata.c49 int mysqlnd_local_infile_init(void **ptr, char *filename, void **userdata TSRMLS_DC) argument
65 if (php_check_open_basedir_ex(filename, 0 TSRMLS_CC) == -1) {
72 info->filename = filename;
73 info->fd = php_stream_open_wrapper_ex((char *)filename, "r", 0, NULL, context);
76 snprintf((char *)info->error_msg, sizeof(info->error_msg), "Can't find file '%-.64s'.", filename);
174 mysqlnd_handle_local_infile(MYSQLND *conn, const char *filename, zend_bool *is_warning TSRMLS_DC) argument
202 if (infile.local_infile_init(&info, (char *)filename, conn->infile.userdata TSRMLS_CC)) {
/PHP_5_3/ext/soap/
H A Dphp_xml.c80 xmlDocPtr soap_xmlParseFile(const char *filename TSRMLS_DC)
92 ctxt = xmlCreateFileParserCtxt(filename);
184 int php_stream_xmlIO_match_wrapper(const char *filename) argument
187 return php_stream_locate_url_wrapper(filename, NULL, STREAM_LOCATE_WRAPPERS_ONLY TSRMLS_CC) ? 1 : 0;
190 void *php_stream_xmlIO_open_wrapper(const char *filename) argument
193 return php_stream_open_wrapper((char*)filename, "rb", ENFORCE_SAFE_MODE|REPORT_ERRORS, NULL);

Completed in 96 milliseconds

1234