/[gentoo-x86]/dev-php/pecl-crack/files/fix-php-5-4-support.patch
Gentoo

Contents of /dev-php/pecl-crack/files/fix-php-5-4-support.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Aug 19 08:41:34 2012 UTC (9 months ago) by olemarkus
Branch: MAIN
CVS Tags: HEAD
Revbump that should work with php 5.4. Bug 423869. Thanks to hanno for digging up the patch

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 Gentoo bug: 423869
2 Thanks to hanno
3
4 --- pecl/crack/trunk/crack.c 2008/07/17 10:02:47 262854
5 +++ pecl/crack/trunk/crack.c 2012/06/07 16:13:34 326013
6 @@ -38,7 +38,7 @@
7
8 /* {{{ crack_functions[]
9 */
10 -function_entry crack_functions[] = {
11 +zend_function_entry crack_functions[] = {
12 PHP_FE(crack_opendict, NULL)
13 PHP_FE(crack_closedict, NULL)
14 PHP_FE(crack_check, NULL)
15 @@ -94,6 +94,7 @@
16 int filename_len;
17 int result = SUCCESS;
18
19 +#if PHP_VERSION_ID < 50400
20 if (PG(safe_mode)) {
21 filename_len = strlen(path) + 10;
22 filename = (char *) emalloc(filename_len);
23 @@ -125,6 +126,7 @@
24 return FAILURE;
25 }
26 }
27 +#endif
28
29 if (php_check_open_basedir(path TSRMLS_CC)) {
30 return FAILURE;

  ViewVC Help
Powered by ViewVC 1.1.13