note 100860 added to function.idn-to-ascii
| From: | Eman at osu1 dot php dot net | Date: | Thu, 11 Nov 2010 12:57:16 +0000 |
| Subject: | note 100860 added to function.idn-to-ascii | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-173941@lists.php.net to get a copy of this message | ||
With PHP 5.3 I started to recieve
Fatal error: Only variables can be passed by reference
when trying to call idn_to_ascii with second optional parameter (IDNA_DEFAULT).
Moreover these IDNA_* constants are seem to be undefined in PHP 5.3. + PECL idn 0.0.2
When I tried to uninstall PECL idn and install PECL intl (1.1.1) i recieved this:
/tmp/pear/temp/intl/collator/collator_class.c:92: error: duplicate âstaticâ
/tmp/pear/temp/intl/collator/collator_class.c:96: error: duplicate âstaticâ
/tmp/pear/temp/intl/collator/collator_class.c:101: error: duplicate âstaticâ
/tmp/pear/temp/intl/collator/collator_class.c:107: error: duplicate âstaticâ
make: *** [collator/collator_class.lo] Error 1
So probably compiling PHP 5.3. from sources with --enable-intl will help, but it only means that PHP
5.3. intl version differs from the one available at PECL, which isn't good, I think.
I've made my code working again by giving second idn_to_ascii parameter as simple integer
variable (with value 0), but something bad is going on here and i will not be surprised if
it'll break again after another PHP update...
----
Server IP: 69.147.83.197
Probable Submitter: 85.254.248.8
----
Manual Page -- http://www.php.net/manual/en/function.idn-to-ascii.php
Edit -- https://master.php.net/note/edit/100860
Del: integrated -- https://master.php.net/note/delete/100860/integrated
Del: useless -- https://master.php.net/note/delete/100860/useless
Del: bad code -- https://master.php.net/note/delete/100860/bad+code
Del: spam -- https://master.php.net/note/delete/100860/spam
Del: non-english -- https://master.php.net/note/delete/100860/non-english
Del: in docs -- https://master.php.net/note/delete/100860/in+docs
Del: other reasons-- https://master.php.net/note/delete/100860
Reject -- https://master.php.net/note/reject/100860
Search -- https://master.php.net/manage/user-notes.php