]> TLD Linux GIT Repositories - packages/php.git/blob - php-fileinfo.patch
- patch fileinfo and sqlite3 to meet version requirements
[packages/php.git] / php-fileinfo.patch
1 diff -urNp php-5.4.17.orig/ext/fileinfo/libmagic/print.c php-5.4.17/ext/fileinfo/libmagic/print.c
2 --- php-5.4.17.orig/ext/fileinfo/libmagic/print.c       2013-07-03 06:10:53.000000000 +0000
3 +++ php-5.4.17/ext/fileinfo/libmagic/print.c    2013-07-18 14:37:33.000000000 +0000
4 @@ -28,7 +28,6 @@
5  /*
6   * print.c - debugging printout routines
7   */
8 -
9  #define _GNU_SOURCE
10  #include "php.h"
11  
12 diff -urNp php-5.4.17.orig/ext/fileinfo/libmagic/softmagic.c php-5.4.17/ext/fileinfo/libmagic/softmagic.c
13 --- php-5.4.17.orig/ext/fileinfo/libmagic/softmagic.c   2013-07-03 06:10:53.000000000 +0000
14 +++ php-5.4.17/ext/fileinfo/libmagic/softmagic.c        2013-07-18 14:37:33.000000000 +0000
15 @@ -1630,7 +1630,7 @@ mget(struct magic_set *ms, const unsigne
16         /* Verify we have enough data to match magic type */
17         switch (m->type) {
18         case FILE_BYTE:
19 -               if (nbytes < (offset + 1)) /* should alway be true */
20 +               if (nbytes < (offset + 1)) /* should always be true */
21                         return 0;
22                 break;
23  
24 diff -urNp php-5.4.17.orig/ext/fileinfo/php_fileinfo.h php-5.4.17/ext/fileinfo/php_fileinfo.h
25 --- php-5.4.17.orig/ext/fileinfo/php_fileinfo.h 2013-07-03 06:10:53.000000000 +0000
26 +++ php-5.4.17/ext/fileinfo/php_fileinfo.h      2013-07-18 14:37:33.000000000 +0000
27 @@ -24,7 +24,7 @@
28  extern zend_module_entry fileinfo_module_entry;
29  #define phpext_fileinfo_ptr &fileinfo_module_entry
30  
31 -#define PHP_FILEINFO_VERSION "1.0.5"
32 +#define PHP_FILEINFO_VERSION "1.0.5-dev"
33  
34  #ifdef PHP_WIN32
35  #define PHP_FILEINFO_API __declspec(dllexport)
36 diff -urNp php-5.4.17.orig/ext/fileinfo/tests/magic php-5.4.17/ext/fileinfo/tests/magic
37 --- php-5.4.17.orig/ext/fileinfo/tests/magic    2013-07-03 06:10:53.000000000 +0000
38 +++ php-5.4.17/ext/fileinfo/tests/magic 2013-07-18 14:37:33.000000000 +0000
39 @@ -3303,7 +3303,7 @@
40  >>>0x44                string  =GLOB           \b.
41  >>>>0x60       beshort x               \b%.4d
42  
43 -# Scripts that run in the embeded Python interpreter
44 +# Scripts that run in the embedded Python interpreter
45  0              string  #!BPY           Blender3D BPython script
46  
47  #------------------------------------------------------------------------------