Page MenuHomePhabricator

Phabricator mysql.implementation
Closed, DuplicatePublic

Description

PHP fatal error: Call to undefined function mysql_real_escape_string() in /var/www/bugs/libphutil/src/aphront/storage/connection/mysql/AphrontMySQLDatabaseConnection.php on line 12

This error is causing me unable to modify the config, or start the daemons.

Running PHP Version 5.6.3

Event Timeline

cblair91 raised the priority of this task from to High.
cblair91 updated the task description. (Show Details)
cblair91 added a subscriber: cblair91.

According to PHP.net that function is deprecated as of PHP 5.5 so Phabricator should probably start using PDO::quote() anyway.

We use mysqli if it's available. mysqli is not deprecated.

If mysqli is not available, we fall back to mysql.

If neither are available, we apparently fatal in a confusing way.

(It is very unusual for PHP to have neither mysqli or mysql, but obviously we should handle this case better.)

btrahan raised the priority of this task from High to Needs Triage.Feb 13 2015, 1:00 AM
btrahan added a subscriber: btrahan.