Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12995 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12614 invoked by uid 1010); 26 Sep 2004 10:19:54 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 7629 invoked from network); 26 Sep 2004 10:19:00 -0000 Received: from unknown (HELO moutng.kundenserver.de) (212.227.126.171) by pb1.pair.com with SMTP; 26 Sep 2004 10:19:00 -0000 Received: from [212.227.126.155] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1CBW7P-00062Q-00 for internals@lists.php.net; Sun, 26 Sep 2004 12:18:59 +0200 Received: from [80.139.29.95] (helo=[80.139.29.95]) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1CBW7P-0005GJ-00 for internals@lists.php.net; Sun, 26 Sep 2004 12:18:59 +0200 To: internals@lists.php.net Content-Type: multipart/mixed; boundary="=-o+VY51WoXN0bkk/TwHcM" Message-ID: <1096193618.321.2.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sun, 26 Sep 2004 12:13:38 +0200 X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:e958292ea7b1c44e51b2b9ca0a9da460 Subject: Readline compile failure From: thekid@thekid.de (Timm Friebe) --=-o+VY51WoXN0bkk/TwHcM Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi, here's a patch that fixes the following: In file included from /usr/home/thekid/devel/php/php/ext/readline/readline.c:28: /usr/home/thekid/devel/php/php/ext/readline/php_readline.h:26: warning: #warning Readline module will *NEVER* be thread-safe /usr/home/thekid/devel/php/php/ext/readline/readline.c: In function `_readline_completion_cb': /usr/home/thekid/devel/php/php/ext/readline/readline.c:423: warning: passing arg 1 of `completion_matches' discards qualifiers from pointer target type /usr/home/thekid/devel/php/php/ext/readline/readline.c: In function `zif_readline_completion_function': /usr/home/thekid/devel/php/php/ext/readline/readline.c:443: syntax error before `char' /usr/home/thekid/devel/php/php/ext/readline/readline.c:444: `name' undeclared (first use in this function) /usr/home/thekid/devel/php/php/ext/readline/readline.c:444: (Each undeclared identifier is reported only once /usr/home/thekid/devel/php/php/ext/readline/readline.c:444: for each function it appears in.) *** Error code 1 Stop in /usr/home/thekid/devel/php/php. - Timm --=-o+VY51WoXN0bkk/TwHcM Content-Disposition: attachment; filename=readline.patch Content-Type: text/x-patch; name=readline.patch; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Index: ext/readline/readline.c =================================================================== RCS file: /repository/php-src/ext/readline/readline.c,v retrieving revision 1.37 diff -u -r1.37 readline.c --- ext/readline/readline.c 17 Sep 2004 11:26:43 -0000 1.37 +++ ext/readline/readline.c 26 Sep 2004 10:17:08 -0000 @@ -435,12 +435,12 @@ PHP_FUNCTION(readline_completion_function) { zval *arg = NULL; + char *name = NULL; if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &arg)) { RETURN_FALSE; } - char *name = NULL; if (!zend_is_callable(arg, 0, &name)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s is not callable", name); RETURN_FALSE; --=-o+VY51WoXN0bkk/TwHcM--