|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58525 newt_get_screen_size doesn't return the actual screen size
Submitted: 2009-01-28 18:42 UTC Modified: 2009-01-29 03:34 UTC
From: timo at exbase dot org Assigned:
Status: Closed Package: newt (PECL)
PHP Version: 5.2.5 OS: Linux 2.6.27-gentoo-r8 x86_64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: timo at exbase dot org
New email:
PHP Version: OS:


 [2009-01-28 18:42 UTC] timo at exbase dot org
newt_get_screen_size doesn't work correctly on my AMD64 system. See the reproduce code and the actual/expected results.

On my other system (Linux mental2 2.6.21-xen0 #1 SMP Sun Jun 1 03:54:59 CEST 2008 i686 AMD Athlon(tm) XP 3000+ AuthenticAMD GNU/Linux), the size is returned correctly.

Reproduce code:
newt_init ();
newt_cls ();

newt_get_screen_size (&$rows, &$cols);

echo "Rows: $rows, Cols: $cols\n";

Expected result:
Rows: 25, Cols: 80

Actual result:
Rows: 140733193388209, Cols: 140733193388082


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-01-29 03:34 UTC] spektom at gmail dot com
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Dec 02 22:01:23 2020 UTC