Bug #62186 [NEW]: readline fails to compile - void function should not return a value
| From: | sgtbundy at gmail dot com | Date: | Wed, 30 May 2012 06:37:08 +0000 |
| Subject: | Bug #62186 [NEW]: readline fails to compile - void function should not return a value | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-170918@lists.php.net to get a copy of this message | ||
From: sgtbundy at gmail dot com
Operating system: SunOS 5.10
PHP version: 5.4.3
Package: *Compile Issues
Bug Type: Bug
Bug description:readline fails to compile - void function should not return a value
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
--
Edit bug report at https://bugs.php.net/bug.php?id=62186&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62186&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62186&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62186&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=62186&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62186&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=62186&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=62186&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=62186&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=62186&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=62186&r=support
Expected behavior: https://bugs.php.net/fix.php?id=62186&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=62186&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=62186&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=62186&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62186&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=62186&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=62186&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=62186&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=62186&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=62186&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=62186&r=mysqlcfg