Will It Vibe logoWill It Vibe?
PHP-007Medium severity-8 points

Deprecated ext/mysql (mysql_*) function used

Part of Code Quality & Syntax, which counts for 20% of the overall score. When this check fires it deducts 8 points from that category, once per scan, no matter how many places it turns up.

What it detects

The entire ext/mysql extension (mysql_connect, mysql_query, ...) was removed in PHP 7.0. Code calling these functions either targets an ancient, unsupported PHP build or is dead code left over from a migration to mysqli/PDO, and will fatal-error under any current PHP version.

Why it matters

The entire ext/mysql extension (mysql_connect, mysql_query, and the rest of that function family) was removed in PHP 7.0. Code that still calls these functions will fatal-error with a "call to undefined function" on any currently supported PHP version, meaning this code path is either already dead and untested, or it is running on an unsupported, unpatched PHP build.

How to fix it

Port the calls to mysqli (mysqli_connect/mysqli_query, or the OOP mysqli API) or PDO. Both support prepared statements, which ext/mysql never did, so this is also a chance to fix any string-built queries at the same call sites. If the code is genuinely unused, delete it instead of migrating it.

The paid report includes a ready-to-paste prompt for your AI coding agent for every check it finds, pointed at the exact findings from your scan. See pricing

Does your repo trip this check?

Paste a GitHub URL or drop a project folder. Scans run in your browser and take seconds.

Scan your repo

Related Code Quality & Syntax checks