ID: 28248
Comment by: brian dot paquin at yale dot edu
Reported By: gem at rellim dot com
Status: Open
Bug Type: Compile Failure
Operating System: Slackware 9.0
PHP Version: 5.0.2
New Comment:
System:
--------
Mac OS X Server 10.3.6, FreeTDS 0.63R2, PHP 5.0.3RC1
Result:
--------
Exact same error as gem (see above)
(can query Sybase fine using tsql)
Previous Comments:
------------------------------------------------------------------------
[2004-10-12 01:56:38] gem at rellim dot com
Still busted in 5.0.2.
Can someone please apply the patch attached to this bug??
------------------------------------------------------------------------
[2004-07-21 16:37:29] jon dot bertsch at ucop dot edu
Running on SUSE 9.1, PHP 5.0.0
Trying to compile --with-sybase=/opt/sybase saw the
exact same problem. Used this fix to get through the
make process but when I attempted to install there was
some clash against mssql that is also installed (--with-
mssql=/usr/local/freetds)
Attempted using sybase against freetds as well but saw
the same problem.
Seems like you can't have sybase and mssql both
installed at the same time right now.
------------------------------------------------------------------------
[2004-07-20 05:30:52] gem at rellim dot com
Still fails on 5.0.0 release.
Monkey See, Monkey Do. I looked at the source and comprehension eluded
me. So I looked at similar code. Here is the patch I came up with that
appears to work:
--- php_sybase_db.c.DIST 2004-07-19 20:13:37.000000000 -0700
+++ php_sybase_db.c 2004-07-19 20:13:59.000000000 -0700
@@ -1108,9 +1108,7 @@
{
php_sybase_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU);
if (Z_TYPE_P(return_value)==IS_ARRAY) {
- Z_TYPE_P(return_value)=IS_OBJECT;
- Z_OBJPROP_P(return_value) = Z_ARRVAL_P(return_value);
- Z_OBJCE_P(return_value) = ZEND_STANDARD_CLASS_DEF_PTR;
+ object_and_properties_init(return_value,
ZEND_STANDARD_CLASS_DEF_PTR, Z_ARRVAL_P(return_value));
}
}
/* }}} */
------------------------------------------------------------------------
[2004-06-24 21:14:30] muaddib at muaddib dot net
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));
}
}
------------------------------------------------------------------------
[2004-06-24 19:31:02] muaddib at muaddib dot net
same errors, using mandrake 9 and sybase ASE 11.0.3.3
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/28248
--
Edit this bug report at http://bugs.php.net/?id=28248&edit=1