note 117151 added to paradox.installation
| From: | NikolaKotarov | Date: | Wed, 22 Apr 2015 15:03:39 +0000 |
| Subject: | note 117151 added to paradox.installation | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-202321@lists.php.net to get a copy of this message | ||
If you try on newer versions of php (like 5.5 and above) it is not working with pecl, so you need to
do it manually. Get package, untar it and then apply this patch:
--- paradox-1.4.3/paradox.c 2007-09-25 15:12:42.000000000 +0300
+++ paradox.c 2015-04-22 16:42:13.399878251 +0300
@@ -48,7 +48,7 @@
*
* Every user visible function must have an entry in paradox_functions[].
*/
-function_entry paradox_functions[] = {
+zend_function_entry paradox_functions[] = {
PHP_FE(px_new, NULL)
PHP_FE(px_open_fp, NULL)
PHP_FE(px_create_fp, NULL)
@@ -89,7 +89,7 @@
};
/* }}} */
-function_entry paradox_funcs_db[] = {
+zend_function_entry paradox_funcs_db[] = {
PHP_ME_MAPPING(__construct, px_new, NULL, 0)
PHP_ME_MAPPING(open_fp, px_open_fp, NULL, 0)
PHP_ME_MAPPING(create_fp, px_create_fp, NULL, 0)
@@ -283,7 +283,7 @@
ALLOC_HASHTABLE(intern->zo.properties);
zend_hash_init(intern->zo.properties, 0, NULL, ZVAL_PTR_DTOR, 0);
- zend_hash_copy(intern->zo.properties, &class_type->default_properties,
(copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *));
+ object_properties_init((zend_object*) &(intern->zo), class_type);
intern->ptr = PX_new2(px_custom_errorhandler, px_emalloc, px_erealloc, px_efree);
retval->handle = zend_objects_store_put(intern, paradox_object_dtor, NULL, NULL TSRMLS_CC);
then to compile it with
phpize
./configure
make
make install
You could do make test also, but some tests are broken.
----
Server IP: 72.52.91.14
Probable Submitter: 79.132.31.145
----
Manual Page -- http://php.net/manual/en/paradox.installation.php
Edit -- https://master.php.net/note/edit/117151
Del: integrated -- https://master.php.net/note/delete/117151/integrated
Del: useless -- https://master.php.net/note/delete/117151/useless
Del: bad code -- https://master.php.net/note/delete/117151/bad+code
Del: spam -- https://master.php.net/note/delete/117151/spam
Del: non-english -- https://master.php.net/note/delete/117151/non-english
Del: in docs -- https://master.php.net/note/delete/117151/in+docs
Del: other reasons-- https://master.php.net/note/delete/117151
Reject -- https://master.php.net/note/reject/117151
Search -- https://master.php.net/manage/user-notes.php