mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
Fix for PHP 5.4.
This commit is contained in:
parent
d42ce93da3
commit
b66c7f3f9e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=296733
2 changed files with 45 additions and 0 deletions
17
print/pecl-pdflib/files/patch-pdf.c
Normal file
17
print/pecl-pdflib/files/patch-pdf.c
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
--- pdf.c 2010/04/28 12:17:58 298698
|
||||||
|
+++ pdf.c 2012/01/28 03:05:18 322900
|
||||||
|
@@ -766,10 +766,14 @@
|
||||||
|
|
||||||
|
ALLOC_HASHTABLE(intern->std.properties);
|
||||||
|
zend_hash_init(intern->std.properties, 0, NULL, ZVAL_PTR_DTOR, 0);
|
||||||
|
+#if PHP_VERSION_ID < 50399
|
||||||
|
zend_hash_copy(intern->std.properties,
|
||||||
|
&class_type->default_properties,
|
||||||
|
(copy_ctor_func_t) zval_add_ref,
|
||||||
|
(void *) &tmp, sizeof(zval *));
|
||||||
|
+#else
|
||||||
|
+ object_properties_init( (zend_object*)intern, class_type );
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
retval.handle = zend_objects_store_put(intern, NULL,
|
||||||
|
(zend_objects_free_object_storage_t)pdflib_object_dtor,
|
28
print/pecl-pdflib/files/patch-pdf7.c
Normal file
28
print/pecl-pdflib/files/patch-pdf7.c
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
--- pdf7.c 2010/04/28 12:17:58 298698
|
||||||
|
+++ pdf7.c 2012/02/25 12:27:38 323503
|
||||||
|
@@ -322,8 +322,9 @@
|
||||||
|
{
|
||||||
|
zend_object_value retval;
|
||||||
|
pdflib_object *intern;
|
||||||
|
+#if PHP_VERSION_ID < 50399
|
||||||
|
zval *tmp;
|
||||||
|
-
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
intern = emalloc(sizeof(pdflib_object));
|
||||||
|
memset(intern, 0, sizeof(pdflib_object));
|
||||||
|
@@ -332,10 +333,14 @@
|
||||||
|
|
||||||
|
ALLOC_HASHTABLE(intern->std.properties);
|
||||||
|
zend_hash_init(intern->std.properties, 0, NULL, ZVAL_PTR_DTOR, 0);
|
||||||
|
+#if PHP_VERSION_ID < 50399
|
||||||
|
zend_hash_copy(intern->std.properties,
|
||||||
|
&class_type->default_properties,
|
||||||
|
(copy_ctor_func_t) zval_add_ref,
|
||||||
|
(void *) &tmp, sizeof(zval *));
|
||||||
|
+#else
|
||||||
|
+ object_properties_init( (zend_object*)intern, class_type );
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
retval.handle = zend_objects_store_put(intern, NULL,
|
||||||
|
(zend_objects_free_object_storage_t)pdflib_object_dtor,
|
Loading…
Add table
Reference in a new issue