You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
fe7eb6e684
git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@94571 d073be05-634f-4543-b044-5fe20cf6d1d6
26 lines
979 B
Diff
26 lines
979 B
Diff
http://svn.php.net/viewvc?view=revision&revision=297236
|
||
and another patch to fix "error: ‘zend_class_entry’ has no member named ‘default_properties’"
|
||
--- gdchart.c.orig 2006-01-03 15:05:29.000000000 -0600
|
||
+++ gdchart.c 2012-06-22 18:35:27.000000000 -0500
|
||
@@ -192,7 +192,7 @@
|
||
*
|
||
* Every user visible function must have an entry in gdchart_functions[].
|
||
*/
|
||
-function_entry gdchart_functions[] = {
|
||
+zend_function_entry gdchart_functions[] = {
|
||
{NULL, NULL, NULL} /* Must be the last line in gdchart_functions[] */
|
||
};
|
||
/* }}} */
|
||
@@ -300,7 +300,11 @@
|
||
|
||
ALLOC_HASHTABLE(intern->zo.properties);
|
||
zend_hash_init(intern->zo.properties, 0, NULL, ZVAL_PTR_DTOR, 0);
|
||
+#if PHP_VERSION_ID < 50399
|
||
zend_hash_copy(intern->zo.properties, &class_type->default_properties, (copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *));
|
||
+#else
|
||
+ object_properties_init(&(intern->zo), class_type);
|
||
+#endif
|
||
|
||
#if ZEND_MODULE_API_NO >= 20050922
|
||
intern->zo.guards = NULL;
|