From: ludovic dot noel at sgcib dot com
Operating system: Linux RH AS
PHP version: 4.3.3RC2
PHP Bug Type: Compile Failure
Bug description: Compilation error when enabling sybase

Description:
------------
The same system with the same build line with PHP4.3.2 work with no
errors.

configure line :
./configure --prefix=/usr/local/sas/php-4.3.3RC2 --enable-dbx
--enable-dio --enable-exif --enable-ftp --enable-gd-native-tt
--enable-magic-quotes --enable-safe-mode --enable-sockets
--enable-tokenizer --enable-track-vars --enable-trans-sid --enable-wddx
--enable-xml --enable-yp --enable-calendar --enable-sockets
--with-gd="/usr/local" --with-zlib --with-t1lib="/usr/local"
--with-jpeg-dir="/usr/local" --with-png-dir="/usr/local"
--with-zlib-dir="/usr/local" --with-ttf --with-freetype-dir="/usr/local"
--with-sybase="/usr/local/sybase" --with-oracle="/usr/local/oracle/8.1.7"
--with-apxs2=/usr/local/apache/bin/apxs >./resultat_compilation.txt

Compilation Error :
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c: In function
`php_sybase_do_connect':
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:395: request for
member `value' in something not a structure or union
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c: In function
`zif_sybase_select_db':
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:657: invalid type
argument of `unary *'
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c: In function
`zif_sybase_free_result':
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:954: p error
before `if'
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c: At top level:
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:955: p error
before `return'
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:957:
`sybase_result_index' undeclared here (not in a function)
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:957: `type'
undeclared here (not in a function)
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:957: warning:
initialization makes integer from pointer without a cast
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:957: initializer
element is not constant
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:957: warning: data
definition has no type or storage class
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:959: p error
before `if'
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:961: p error
before `->'
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:963: p error
before `('
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:964: p error
before `->'
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c: In function
`zif_sybase_result':
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:1326: request for
member `value' in something not a structure or union
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c: In function
`zif_sybase_affected_rows':
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:1370: invalid type
argument of `->'
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:1370: invalid type
argument of `->'
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:1370: incompatible
types in initialization
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:1370: incompatible
types in assignment
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:1370: invalid type
argument of `unary *'
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:1370: incompatible
type for argument 1 of `_zval_copy_ctor'
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:1370: invalid type
argument of `->'
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:1370: invalid type
argument of `->'
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:1370: incompatible
type for argument 1 of `convert_to_long'
/usr/local/src/php-4.3.3RC2/ext/sybase/php_sybase_db.c:1371: invalid type
argument of `unary *'
make: *** [ext/sybase/php_sybase_db.lo] Error 1



--
Edit bug report at [url]http://bugs.php.net/?id=24965&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=24965&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=24965&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=24965&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=24965&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=24965&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=24965&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=24965&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=24965&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=24965&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=24965&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=24965&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=24965&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=24965&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=24965&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=24965&r=gnused[/url]