Why does PHP sqlite_libversion() function fail on Red Hat Enterprise Linux 6?

Solution Verified - Updated -

Issue

  • Why does PHP sqlite_libversion() function fail on Red Hat Enterprise Linux 6?
  • The message on RHEL seems to indicate that SQLite3 is loaded. but the PHP library does not seem to be able to connect.
  • sqlite_libversion() fails to returns the version of the linked SQLite3 library.
# php -m | grep sqlite3
sqlite3

# cat /path2file/sqlite_libversion.php
<?PHP
echo sqlite_libversion();
?>

# php  /path2file/sqlite_libversion.php
PHP Fatal error:  Call to undefined function sqlite_libversion() in /path2file/sqlite_libversion.php on line 2

Environment

  • Red Hat Enterprise Linux (RHEL) 6
  • php-5.3.3-27.el6_5.x86_64
  • sqlite-3.6.20-1.el6.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.