以前说过Ubuntu升级到hardy之后,php-sybase没了,现在在intrepid里又有了,不过有些变化。
主要的原因好像是支持方式从以前的ctlib变成了dblib,其实是和mssql的支持作在一起了,所以现在没有了sybase_ct.so,并且如果使用了adodb(我新下载的版本是5.07),要修改drivers/adodb-sybase.inc.php的148行,把
return sybase_unbuffered_query($sql,$this->_connectionID);
替换为
return sybase_query($sql,$this->_connectionID);
因为sybase_unbuffered_query只有在使用CT library时才能用。
另外一个小变化就是timestamp读出来以后的值变了,由于sybase内置的timestamp其实是varbinary类型,所以原来使用ctlib的时候读出来就是这样的:000007d001917b36,但现在变成了类似中文字符串的形式,所以也需要转换一下:
if (16 != strlen($ts))
$ts = bin2hex($ts);
More »
Tags: adodb, intrepid, PHP, Problem, sybase, timestamp, UbuntuRelated posts
- 忙碌的5月 (8)
- 升级到8.10 intrepid过程中libc6依赖性死循环问题的解决 (2)
- Ubuntu从Gutsy升级到Hardy,php5-sybase又掉链子 (2)
- adodb5连接sybase的一个错误 (0)
- [ubuntu]安装vmware时找不到c header files的小问题 (3)





![[co.mments]](http://www.fwolf.com/blog/wp-content/plugins/bookmarkify/comments.png)
![[Furl]](http://www.fwolf.com/blog/wp-content/plugins/bookmarkify/furl.png)
![[Rojo]](http://www.fwolf.com/blog/wp-content/plugins/bookmarkify/rojo.png)
![[StumbleUpon]](http://www.fwolf.com/blog/wp-content/plugins/bookmarkify/stumbleupon.png)
![[Technorati]](http://www.fwolf.com/blog/wp-content/plugins/bookmarkify/technorati.png)
![[Windows Live]](http://www.fwolf.com/blog/wp-content/plugins/bookmarkify/windowslive.png)
![[Yahoo!]](http://www.fwolf.com/blog/wp-content/plugins/bookmarkify/yahoo.png)

Feed