Browse Source

Use D modifier in pattern

rpm
J. King 3 years ago
parent
commit
2767ab755e
  1. 2
      lib/Service/Daemon.php

2
lib/Service/Daemon.php

@ -7,7 +7,7 @@ declare(strict_types=1);
namespace JKingWeb\Arsse\Service;
class Daemon {
protected const PID_PATTERN = "/^(?:[1-9]\d{0,77})*$/s"; // no more than 78 digits (256-bit unsigned integer), starting with a digit other than zero
protected const PID_PATTERN = '/^([1-9]\d{0,77})*$/D'; // no more than 78 digits (256-bit unsigned integer), starting with a digit other than zero
/** Daemonizes the process via the traditional sysvinit double-fork procedure
*

Loading…
Cancel
Save