|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-01-10 15:07 UTC] gmblar+php at gmail dot com
Description: ------------ The file http://svn.php.net/viewvc/pecl/idn/tags/RELEASE_0_2_0/idn.c?revision=272895&view=markup#l221 contains: function_entry idn_functions[] = { but should contain: zend_module_entry idn_module_entry = { what was already fixed in trunk 3 years ago http://svn.php.net/viewvc/pecl/idn/trunk/idn.c?revision=319831&view=markup#l223 please create a new release from trunk. Test script: --------------- $ sudo pecl install idn-beta downloading idn-0.2.0.tgz ... Starting to download idn-0.2.0.tgz (6,313 bytes) .....done: 6,313 bytes 3 source files, building running: phpize Configuring for: PHP Api Version: 20131106 Zend Module Api No: 20131226 Zend Extension Api No: 220131226 GNU libidn installation dir? [autodetect] : /opt/local Actual result: -------------- cc -I. -I/private/tmp/pear/temp/idn -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-rootQa7FOI/idn-0.2.0/include -I/private/tmp/pear/temp/pear-build-rootQa7FOI/idn-0.2.0/main -I/private/tmp/pear/temp/idn -I/opt/local/include/php56/php -I/opt/local/include/php56/php/main -I/opt/local/include/php56/php/TSRM -I/opt/local/include/php56/php/Zend -I/opt/local/include/php56/php/ext -I/opt/local/include/php56/php/ext/date/lib -I/opt/local/include -I/opt/local/include -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/idn/idn.c -fno-common -DPIC -o .libs/idn.o /private/tmp/pear/temp/idn/idn.c:221:1: error: unknown type name 'function_entry' function_entry idn_functions[] = { ^ 1 error generated. make: *** [idn.lo] Error 1 ERROR: `make' failed PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 09:00:01 2025 UTC |
gmblar I suppose you mean to replace: function_entry idn_functions[] = { with zend_function_entry idn_functions[] = { BUT when done so and idn.so is enabled in apache's php.ini, PHP breaks: PHP Warning: Function registration failed - duplicate name - idn_to_ascii in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - idn_to_utf8 in Unknown on line 0 PHP Warning: idn: Unable to register functions, unable to load in Unknown on line 0 Segment Violation Should I enable idn.so elsewhere (cgi/cli/fpm)?