Bug #67212 [Asn->Csd]: phpdbg uses non-standard TIOCGWINSZ
| From: | bwoebi@php.net | Date: | Sun, 15 Jun 2014 13:54:55 +0000 |
| Subject: | Bug #67212 [Asn->Csd]: phpdbg uses non-standard TIOCGWINSZ | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-186199@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67212&edit=1
ID: 67212
Updated by: bwoebi@php.net
Reported by: johannes@php.net
Summary: phpdbg uses non-standard TIOCGWINSZ
-Status: Assigned
+Status: Closed
Type: Bug
Package: Compile Failure
Operating System: Solaris
PHP Version: 5.6Git-2014-05-06 (Git)
-Assigned To: krakjoe
+Assigned To: tyrael
Block user comment: N
Private report: N
New Comment:
The fix for this bug has been committed.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2014-05-06 07:56:00] johannes@php.net
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 this bug report at https://bugs.php.net/bug.php?id=67212&edit=1