Bug #67212 [NEW]: phpdb uses non-standard TIOCGWINSZ
| From: | johannes@php.net | Date: | Tue, 06 May 2014 07:56:00 +0000 |
| Subject: | Bug #67212 [NEW]: phpdb uses non-standard TIOCGWINSZ | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-185651@lists.php.net to get a copy of this message | ||
From: johannes
Operating system: Solaris
PHP version: 5.6Git-2014-05-06 (Git)
Package: Compile Failure
Bug Type: Bug
Bug description:phpdb uses non-standard TIOCGWINSZ
Description:
------------
phpdbg is checking for ioctl presence, but not for TIOCGWINSZ
availability. i.e. on Solaris the build fails.
Also if ioctl isn't found a terminal width of 100 is assumed, most
systems use 80 characters by default
Test script:
---------------
./configure --disable-all && make
Expected result:
----------------
Successful build
Actual result:
--------------
/usr/gcc/4.5/bin/gcc -D_GNU_SOURCE sapi/phpdbg/phpdbg_utils.c -o
sapi/phpdbg/phpdbg_utils.o
sapi/phpdbg/phpdbg_utils.c: In function
âphpdbg_get_terminal_widthâ:
sapi/phpdbg/phpdbg_utils.c:441:17: error: storage size of âwâ
isnât known
sapi/phpdbg/phpdbg_utils.c:443:34: error: âTIOCGWINSZâ undeclared
(first use in this function)
sapi/phpdbg/phpdbg_utils.c:443:34: note: each undeclared identifier is
reported only once for each function it appears in
sapi/phpdbg/phpdbg_utils.c:441:17: warning: unused variable âwâ
make: *** [sapi/phpdbg/phpdbg_utils.lo] Error 1
--
Edit bug report at https://bugs.php.net/bug.php?id=67212&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=67212&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=67212&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=67212&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=67212&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=67212&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=67212&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=67212&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=67212&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=67212&r=support
Expected behavior: https://bugs.php.net/fix.php?id=67212&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=67212&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=67212&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=67212&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=67212&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=67212&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=67212&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=67212&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=67212&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=67212&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=67212&r=mysqlcfg