# jetpack/16.3-a.7/vendor/wp-php-toolkit/reprint-server/src/class-pdo-constants.php

Jetpack – WP Security, Backup, Speed, &amp; Growth, version 16.3-a.7. 24 lines.

- Page: https://pluginprobe.com/plugins/jetpack/16.3-a.7/code/vendor/wp-php-toolkit/reprint-server/src/class-pdo-constants.php
- Raw: https://pluginprobe.com/plugins/jetpack/16.3-a.7/raw/vendor/wp-php-toolkit/reprint-server/src/class-pdo-constants.php
- Modified: 2026-09-08T18:39:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/jetpack/16.3-a.7/code/vendor/wp-php-toolkit/reprint-server/src/class-pdo-constants.php#L10-L20`.

```php
<?php

namespace WordPress\Reprint\Server;

/**
 * Provides PDO constants needed by adapters which also run without ext-pdo.
 */
class PdoConstants {
    public static function fetch_assoc(): int
    {
        return defined('PDO::FETCH_ASSOC') ? constant('PDO::FETCH_ASSOC') : 2;
    }

    public static function fetch_column(): int
    {
        return defined('PDO::FETCH_COLUMN') ? constant('PDO::FETCH_COLUMN') : 7;
    }

    public static function param_str(): int
    {
        return defined('PDO::PARAM_STR') ? constant('PDO::PARAM_STR') : 2;
    }
}

```
