php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9707 syntax error in ext/ftp/ftp.h
Submitted: 2001-03-12 09:31 UTC Modified: 2001-05-27 15:14 UTC
From: andreas at erestor dot f2s dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.4pl1 OS: AIX 4.3
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: andreas at erestor dot f2s dot com
New email:
PHP Version: OS:

 

 [2001-03-12 09:31 UTC] andreas at erestor dot f2s dot com
Hi, I got this symptom by compiling PHP:
xlc  -I. -I/home/pistoor/php-4.0.4pl1/ext/ftp -I/home/pistoor/php-4.0.4pl1/main -I/home/pistoor/php-4.0.4pl1 -I/home/pistoor/php-4.0.4pl1/Zend -I/home/pistoor/php-4.0.4pl1/ext/mysql/libmysql -I/home/pistoor/php-4.0.4pl1/ext/xml/expat/xmltok -I/home/pistoor/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/pistoor/php-4.0.4pl1/TSRM  -DXML_BYTE_ORDER=21 -qsource -qshowinc -I/home/pistoor  -c php_ftp.c && touch php_ftp.lo
"ftp.h", line 47.22: 1506-046 (S) Syntax error.

 I use the xlc-version of the C Set ++ for AIX compiler, as it is more ANSI-C than the cc-version. It also shows more errors.
 My configuration of PHP (as a CGI-program to be used by Lynx):
CC=xlc ./configure --prefix=/home/pistoor/php \
  --with-config-file-path=/home/pistoor/php --enable-debug \
  --enable-sigchild --enable-calendar --enable-ftp \
  --enable-trans-sid --enable-shmop --with-regex=php \
  --enable-sysvsem --enable-sysvshm --enable-wddx \
  --enable-yp

The file ext/ftp/ftp.h contains these lines:
typedef enum ftptype {
        FTPTYPE_ASCII,
        FTPTYPE_IMAGE,
} ftptype_t;

The last "," is too much. I removed it.

 Regard
 Andreas Pistoor

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-27 15:14 UTC] sniper@php.net
Fixed. Fix will be in PHP 4.0.6

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 13:01:28 2024 UTC