|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-05-30 16:50 UTC] johannes@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: johannes
[2012-05-30 23:19 UTC] johannes@php.net
[2012-05-30 23:20 UTC] johannes@php.net
[2012-05-30 23:20 UTC] johannes@php.net
-Status: Assigned
+Status: Closed
[2014-10-07 23:24 UTC] stas@php.net
[2014-10-07 23:35 UTC] stas@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 04:00:01 2025 UTC |
Description: ------------ Compilation of 5.4 source with readline enabled, using Sun Studio 12 compiler, fails with this error: "/var/tmp/php-5.4.3/ext/readline/readline.c", line 201: void function cannot return value cc: acomp failed for /var/tmp/php-5.4.3/ext/readline/readline.c On investigation it seems the info function: PHP_MINFO_FUNCTION(readline) Attempts to return a PHP_MINFO value, however comparing the ZEND API function and other extension source it seems it should be creating an info table instead. Test script: --------------- Replacing: return PHP_MINFO(cli_readline)(ZEND_MODULE_INFO_FUNC_ARGS_PASSTHRU); With: php_info_print_table_start(); php_info_print_table_row(2, "Readline library Version", rl_library_version ); php_info_print_table_end(); Compiles fine Expected result: ---------------- Successful compilation Actual result: -------------- "/var/tmp/php-5.4.3/ext/readline/readline.c", line 201: void function cannot return value cc: acomp failed for /var/tmp/php-5.4.3/ext/readline/readline.c