|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25752 ncurses includes in ext/ncurses/php_ncurses.h conflicts with BSD curses.
Submitted: 2003-10-03 19:39 UTC Modified: 2003-10-03 21:02 UTC
From: suga at netbsd dot com dot br Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.3.3 OS: NetBSD
Private report: No CVE-ID:
 [2003-10-03 19:39 UTC] suga at netbsd dot com dot br
When compiling PHP under NetBSD with '--with-ncurses', the build will fail when ext/ncurses/php_ncurses.h includes <curses.h>, which is actually BSD curses and NOT ncurses.
For the process to work under NetBSD, it's necessary to replace "curses.h" with "ncurses.h" in that file, like:

--- php_ncurses.h.old   Fri Oct  3 20:33:08 2003
+++ php_ncurses.h       Fri Oct  3 20:40:03 2003
@@ -19,7 +19,7 @@
 #ifndef PHP_NCURSES_H
 #define PHP_NCURSES_H

-#include <curses.h>
+#include <ncurses.h>

 extern int le_ncurses_windows;


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-03 21:02 UTC]
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at
In case this was a documentation problem, the fix will show up soon at

In case this was a website problem, the change will show
up on the site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Tue Dec 01 20:01:34 2015 UTC