ID: 28248
Comment by: muaddib at muaddib dot net
Reported By: gem at rellim dot com
Status: Open
Bug Type: Compile Failure
Operating System: Slackware 9.0
PHP Version: 5.0.0RC3
New Comment:
found a fix:
change the code of sybase_fetch_object to:
PHP_FUNCTION(sybase_fetch_object)
{
php_sybase_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU);
if (Z_TYPE_P(return_value)==IS_ARRAY) {
object_and_properties_init(return_value,
ZEND_STANDARD_CLASS_DEF_PTR, Z_ARRVAL_P(return_value));
}
}
Previous Comments:
------------------------------------------------------------------------
[2004-06-24 19:31:02] muaddib at muaddib dot net
same errors, using mandrake 9 and sybase ASE 11.0.3.3
------------------------------------------------------------------------
[2004-06-15 06:49:52] gem at rellim dot com
The problem persists with FreeTDS 0.62.4 and PHP 5.0RC3
------------------------------------------------------------------------
[2004-05-02 01:12:07] gem at rellim dot com
Description:
------------
I am trying to compile PHP 5.0RC2 with sybase support by way of the
freetds libraries.
This has been working fine with many versions of PHP 4. Now it will
not compile.
Reproduce code:
---------------
Using FreTDS 0.61.2 and 0.62.3.
This is in my ./configure: --with-sybase=/usr/local
Actual result:
--------------
/usr/local/src/php-5.0.0RC2/ext/sybase/php_sybase_db.c: In function
`zif_sybase_fetch_object':
/usr/local/src/php-5.0.0RC2/ext/sybase/php_sybase_db.c:1110: invalid
lvalue in assignment
/usr/local/src/php-5.0.0RC2/ext/sybase/php_sybase_db.c:1111: invalid
lvalue in assignment
make: *** [ext/sybase/php_sybase_db.lo] Error 1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28248&edit=1