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

Skip to content

Tags: mfn/safe

Tags

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 t…

…hecodingmachine#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 thecodingmachine#409 from martinssipenko/fix-opens…

…sl_pkey_get_private

FIX: Fix openssl_pkey_get_* functions

v2.4.0

Toggle v2.4.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 thecodingmachine#395 from ildyria/fix-stream-filte…

…r-append

stream_filter_append & stream_filter_prepend use mixed instead of array

v2.3.1

Toggle v2.3.1'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 thecodingmachine#390 from colinodell/fix-missing-s…

…afe-function

Fix undefined sleep() function due to autoloading issue

v2.3.0

Toggle v2.3.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 thecodingmachine#388 from thecodingmachine/fgetcsv

FEATURE: fgetcsv now returns false on end of file

v2.2.3

Toggle v2.2.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Automatically regenerate the files (thecodingmachine#374)

Co-authored-by: Kharhamel <[email protected]>