php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: timo at exbase dot org
New email:
PHP Version: OS:

 

 [2009-01-28 18:42 UTC] timo at exbase dot org
Description:
------------
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:
---------------
<?php
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

Patches

Pull Requests

History

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
http://pecl.php.net/get/newt


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC