Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

PDO prepared statements

Open
#755 0 comments 5 reactions 1 assignee View on GitHub

Maintainers usually reply within 3 days

@astrophysik is already working on this.

Since Feb 22, 2023.

Assessment

This issue has not been assessed yet.

Description

enhancement missing functionality runtime

In PHP there are prepared statements to speed up and simplify the work with PDO

Example:

$request = $db->prepare('SELECT * FROM issues WHERE likes < :likes AND author = :author');
$request->execute(['likes' => 100, 'author' => 'Einstein']);
$answers = $request->fetchAll();

This functionality should be added to KPHP because:

  • It can protect code from SQL injections
  • It helps speed up queries, since the database can parse the expression
Dominant language
C++
Stars
1.5k
Forks
116
Avg merge
3d 23h
Merged PRs (30d)
8

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from VKCOM/kphp

All issues in VKCOM/kphp

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.