Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tags: thecodingmachine/safe

Tags

v3.1.1

Toggle v3.1.1's commit message
always returns string

v3.1.0

Toggle v3.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Automatically regenerate the files (#651)

v3.0.2

Toggle v3.0.2's commit message
fix readme badge

v3.0.1

Toggle v3.0.1's commit message
More consistent formatting for generated files

v3.0.0

Toggle v3.0.0's commit message
`finfo`, despite being lowercase, is a class

grepping for "all the return typehints in `generated/`", it appears that this and `stdClass` are the only lowercase classes:

```
sl grep '^function' | cut -d: -f3 | sort | uniq
```

v3.0.0-beta2

Toggle v3.0.0-beta2's commit message
add return statements to functionsList.php

v3.0.0-beta1

Toggle v3.0.0-beta1's commit message
detect preg_replace_callback and preg_replace_callback_array, fixes #223

v3.0.0-alpha2

Toggle v3.0.0-alpha2's commit message
[generator] Remove redundant phpstan overrides

These overrides were added to manually replace `resource` with `CurlHandle` -- but we now automatically prefer objects over resources

v3.0.0-alpha1

Toggle v3.0.0-alpha1's commit message
Generate files for multiple versions

tl;dr:

replace

```php
$function_list = read_docs();
generate_files($function_list, "../generated/");
```

with

```php
foreach(["8.1", "8.2", "8.3", "8.4"] as $version) {
    exec("cd docs && git checkout $version");
    $function_list = read_docs();
    generate_files($function_list, "../generated/$version/");
}
```

generate a bunch of stubs like generated/misc.php:

```php
<?php
if(PHP_VERSION == "8.1") require_once __DIR__ . "/8.1/misc.php";
if(PHP_VERSION == "8.2") require_once __DIR__ . "/8.2/misc.php";
if(PHP_VERSION == "8.3") require_once __DIR__ . "/8.3/misc.php";
if(PHP_VERSION == "8.4") require_once __DIR__ . "/8.4/misc.php";
```

This also automates generation of "deprecated" `safe` functions (ie, instead of hard-coding `deprecated/apache.php`, any functions which needed safe wrappers in 8.1 but no longer need safe wrappers in 8.2 will have no-op stubs generated instead)

Currently the `Exceptions` are shared between all versions, which I _think_ is a good idea? (Thoughts, anybody?)

-

v2.5.0

Toggle v2.5.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #409 from martinssipenko/fix-openssl_pkey_get_private

FIX: Fix openssl_pkey_get_* functions