com php-src: remove PHP_API_VERSION < 20100 412 check: ext/fileinfo/libmagic/apprentice.c

From: Date: Wed, 19 Feb 2014 10:01:42 +0000
Subject: com php-src: remove PHP_API_VERSION < 20100 412 check: ext/fileinfo/libmagic/apprentice.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-76114@lists.php.net to get a copy of this message
Commit: fdaf3996af052a7e448581fcf924cda7d351a012 Author: Anatol Belski <ab@php.net> Wed, 19 Feb 2014 11:01:42 +0100 Parents: 6d2cf0f2a4afcd1f392aadc6178318dacef05c82 Branches: PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=fdaf3996af052a7e448581fcf924cda7d351a012 Log: remove PHP_API_VERSION < 20100412 check Changed paths: M ext/fileinfo/libmagic/apprentice.c Diff: diff --git a/ext/fileinfo/libmagic/apprentice.c b/ext/fileinfo/libmagic/apprentice.c index dca7b73..4196e17 100644 --- a/ext/fileinfo/libmagic/apprentice.c +++ b/ext/fileinfo/libmagic/apprentice.c @@ -961,11 +961,7 @@ load_1(struct magic_set *ms, int action, const char *fn, int *errs, TSRMLS_FETCH(); ms->file = fn; -#if PHP_API_VERSION < 20100412 - stream = php_stream_open_wrapper((char *)fn, "rb", REPORT_ERRORS|ENFORCE_SAFE_MODE, NULL); -#else stream = php_stream_open_wrapper((char *)fn, "rb", REPORT_ERRORS, NULL); -#endif if (stream == NULL) { if (errno != ENOENT) @@ -2770,12 +2766,8 @@ apprentice_compile(struct magic_set *ms, struct magic_map *map, const char *fn) if (dbname == NULL) goto out; -/* wb+ == O_WRONLY|O_CREAT|O_TRUNC|O_BINARY */ -#if PHP_API_VERSION < 20100412 - stream = php_stream_open_wrapper((char *)fn, "wb+", REPORT_ERRORS|ENFORCE_SAFE_MODE, NULL); -#else + /* wb+ == O_WRONLY|O_CREAT|O_TRUNC|O_BINARY */ stream = php_stream_open_wrapper((char *)fn, "wb+", REPORT_ERRORS, NULL); -#endif if (!stream) { file_error(ms, errno, "cannot open `%s'", dbname);

« previous php.cvs (#76114) next »