1

This package offers the function to manipulate a sybase database, but doesn´t provide a sybase_connect PHP function.

The package was installed:

renato@webv3:/var/www/html$ aptitude show php-sybase
Pacote: php-sybase
Estado: instalado
Automaticamente instalado: não
Versão: 1:7.0+35ubuntu6
Prioridade: opcional
Seção: universe/php
Mantenedor: Ubuntu Developers <[email protected]>
Arquitetura: all
Tamanho Descompactado: 11,3 k
Depende de: php-common, php7.0-sybase
Descrição: Sybase module for PHP [default]
 This package provides a Sybase module for PHP.

the test code

<?php
$link = sybase_connect('SYBASE', '', '')
        or die("Could not connect !");
echo "Connected successfully";
sybase_close($link);
?>

shows error below

[Thu Jun 23 17:20:49.100056 2016] [:error] [pid 5188] [client x.x.x.x:55770] PHP Fatal error:  Uncaught Error: Call to undefined function sybase_connect() in /var/www/html/info2.php:3\nStack trace:\n#0 {main}\n  thrown in /var/www/html/info2.php on line 3
0

1 Answer 1

1

The sybase_connect() function was removed in PHP 7.0.0.

Source: http://php.net/manual/en/function.sybase-connect.php

An answer was posted on Stack Overflow: PHP7 - Connect to sybase database

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .