PHP Classes

File: src/Terremoth/Async/script_functions.php

Recommend this page to a friend!
  Classes of Lucas Marques Dutra   PHP Async   src/Terremoth/Async/script_functions.php   Download  
File: src/Terremoth/Async/script_functions.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: PHP Async
Run scripts in parallel using the PHP CLI command
Author: By
Last change:
Date: 15 days ago
Size: 329 bytes
 

Contents

Class file image Download
<?php

function error(string $error): void
{
   
$error = 'Error: ' . $error;
   
fwrite(STDERR, $error);
   
error_log($error);
}

function
stringFromMemoryBlock(string $value): string
{
   
$position = strpos($value, "\0");
    if (
$position === false) {
        return
$value;
    }
    return
substr($value, 0, $position);
}