ID: 35945
Updated by: felipe@php.net
Reported By: dbaffaleuf at ixis-cib dot com
-Status: No Feedback
+Status: Assigned
Bug Type: Sybase-ct (ctlib) related
Operating System: Linux 2.6.9-22 RedHat AMD64
PHP Version: 5CVS, 4CVS (2006-01-11) (snap)
-Assigned To:
+Assigned To: thekid
New Comment:
Assigned to maintainer.
Previous Comments:
------------------------------------------------------------------------
[2007-07-17 01:00:00] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2007-07-09 13:50:05] jani@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.2-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
Provide your patch as unified diff and in correct order, the one here
is reversed..and use the provided latest snapshot for it.
------------------------------------------------------------------------
[2007-04-25 23:09:46] sabapamu at mizuho-sc dot com
I experienced the same problem with PHP 5.2.1 on Intel x86_64 using
Sybase Open Client 15.0 64bit libraries.
Fix quoted by shawnf worked for me.
------------------------------------------------------------------------
[2006-02-04 16:59:25] shawnf at fletcher dot org dot za
here is a patch for php-5.1
it makes the module use the 64bit libraries and most importantly adds
CFLAGS="${CFLAGS} -g -DSYB_LP64"
-----------------cut here------------------------
*** ext/sybase_ct/config.m4 2006-02-04 16:41:12.000000000 +0100
--- ext/sybase_ct/config.m4.old 2005-05-30 00:16:44.000000000 +0100
***************
*** 29,59 ****
else
AC_MSG_ERROR([ctpublic.h missing!])
fi
-
- CFLAGS="${CFLAGS} -g -DSYB_LP64"
-
PHP_ADD_LIBPATH($SYBASE_CT_LIBDIR, SYBASE_CT_SHARED_LIBADD)
if test -f $SYBASE_CT_INCDIR/tds.h; then
PHP_ADD_LIBRARY(ct,, SYBASE_CT_SHARED_LIBADD)
! SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lct64"
else
! PHP_ADD_LIBRARY(cs64,, SYBASE_CT_SHARED_LIBADD)
! PHP_ADD_LIBRARY(ct64,, SYBASE_CT_SHARED_LIBADD)
! PHP_ADD_LIBRARY(comn64,, SYBASE_CT_SHARED_LIBADD)
! PHP_ADD_LIBRARY(intl64,, SYBASE_CT_SHARED_LIBADD)
! SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lcs64 -lct64 -lcomn64
-lintl64"
! PHP_CHECK_LIBRARY(tcl64, netg_errstr, [
! PHP_ADD_LIBRARY(tcl64,,SYBASE_CT_SHARED_LIBADD)
],[
! PHP_ADD_LIBRARY(sybtcl64,,SYBASE_CT_SHARED_LIBADD)
],[
$SYBASE_CT_LIBS
])
! PHP_CHECK_LIBRARY(insck64, insck__getVdate,
[PHP_ADD_LIBRARY(insck64,,
SYBASE_CT_SHARED_LIBADD)],[],[-L$SYBASE_CT_LIBDIR])
! PHP_CHECK_LIBRARY(insck64, bsd_tcp,
[PHP_ADD_LIBRARY(insck64,,
SYBASE_CT_SHARED_LIBADD)],[],[-L$SYBASE_CT_LIBDIR])
fi
fi
--- 29,56 ----
else
AC_MSG_ERROR([ctpublic.h missing!])
fi
PHP_ADD_LIBPATH($SYBASE_CT_LIBDIR, SYBASE_CT_SHARED_LIBADD)
if test -f $SYBASE_CT_INCDIR/tds.h; then
PHP_ADD_LIBRARY(ct,, SYBASE_CT_SHARED_LIBADD)
! SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lct"
else
! PHP_ADD_LIBRARY(cs,, SYBASE_CT_SHARED_LIBADD)
! PHP_ADD_LIBRARY(ct,, SYBASE_CT_SHARED_LIBADD)
! PHP_ADD_LIBRARY(comn,, SYBASE_CT_SHARED_LIBADD)
! PHP_ADD_LIBRARY(intl,, SYBASE_CT_SHARED_LIBADD)
! SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lcs -lct -lcomn -lintl"
! PHP_CHECK_LIBRARY(tcl, netg_errstr, [
! PHP_ADD_LIBRARY(tcl,,SYBASE_CT_SHARED_LIBADD)
],[
! PHP_ADD_LIBRARY(sybtcl,,SYBASE_CT_SHARED_LIBADD)
],[
$SYBASE_CT_LIBS
])
! PHP_CHECK_LIBRARY(insck, insck__getVdate,
[PHP_ADD_LIBRARY(insck,,
SYBASE_CT_SHARED_LIBADD)],[],[-L$SYBASE_CT_LIBDIR])
! PHP_CHECK_LIBRARY(insck, bsd_tcp,
[PHP_ADD_LIBRARY(insck,,
SYBASE_CT_SHARED_LIBADD)],[],[-L$SYBASE_CT_LIBDIR])
fi
fi
------------------------------------------------------------------------
[2006-01-11 12:05:06] dbaffaleuf at ixis-cib dot com
Hi, thx for your reply.
Though, it does not work either with the 5.1. CVS snapshot you
provided. I get exactly the same error message:
Warning: sybase_query(): Sybase: Client message: (): user api layer:
internal common library error: The bind of result set item 1 resulted in
truncation. (severity 116) in
/msmorzine/sgbd/contrib/src/php5.1-200601110930/MKTEST/bin/test_sybase_ct.php
on line 4
resource(4) of type (sybase-ct link)
bool(false)
Warning: sybase_fetch_row(): supplied argument is not a valid Sybase
result resource in
/msmorzine/sgbd/contrib/src/php5.1-200601110930/MKTEST/bin/test_sybase_ct.php
on line 8
------------------------------------------------------------------------
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/35945
--
Edit this bug report at http://bugs.php.net/?id=35945&edit=1