|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-07-07 15:34 UTC] jani@php.net
[2009-07-07 18:31 UTC] arekm at maven dot pl
[2009-07-15 01:00 UTC] php-bugs at lists dot php dot net
[2011-02-20 22:03 UTC] glen at delfi dot ee
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 15:00:01 2025 UTC |
Description: ------------ ttyname_r() check done in configure is wrong because it relies on doing build on a terminal. Building on non terminal causes failure. Reproduce code: --------------- This is test taken from configure: [arekm@t400 ~/test/3]$ more a.c #include <unistd.h> int main(int argc, char *argv[]) { char buf[64]; return ttyname_r(0, buf, 64) ? 1 : 0; } [arekm@t400 ~/test/3]$ gcc a.c [arekm@t400 ~/test/3]$ ./a.out [arekm@t400 ~/test/3]$ echo $? 0 success - we are on a terminal [arekm@t400 ~/test/3]$ ./a.out < /dev/null zsh: exit 1 ./a.out < /dev/null [arekm@t400 ~/test/3]$ echo $? 1 [arekm@t400 ~/test/3]$ failure - we are not on terminal