Macro call syntax in ABNF:
arg-name = 1*ALPHA
arg = [ arg-name ":" ] ( expr | statement )
arg-list = [ arg [ "," ] ]
arg-list /= arg "," arg-list
macro-name = 1*ALPHA| root@284352ebf2f3:/src# make install | |
| /bin/bash /src/libtool --mode=install cp ./stdng.la /src/modules | |
| cp ./.libs/stdng.so /src/modules/stdng.so | |
| cp ./.libs/stdng.lai /src/modules/stdng.la | |
| PATH="$PATH:/sbin" ldconfig -n /src/modules | |
| ---------------------------------------------------------------------- | |
| Libraries have been installed in: | |
| /src/modules | |
| ... | |
| ---------------------------------------------------------------------- |
| <?php | |
| # Proposal | |
| // remove parens gives a clear sign that it's not a function | |
| declare strict_types = 1; | |
| // require parens in constructs allowed to be used like a function | |
| false or print("always returns 1"); | |
| // exit and die never returns value like echo and __halt_compiler |
Passionate PHP Developer focused on microservices and PHP internals.
It's an alternative to debug_backtrace() with stack-trace frames as objects using less memory than arrays.
Introduced class include two static methods which allows collecting frames from stacktrace:
StackFrame::getTrace(?int $limit = null, ?int $offset = null): array - collects all or portion of stacktraceStackFrame::getFrame(int $index): StackFrame - retrieves a single frame from the stacktrace| <?php | |
| /** | |
| * @template T | |
| */ | |
| class EntityResult { | |
| public readonly $hasNextPage; | |
| public function __construct( | |
| public readonly array $entities, | |
| public readonly int $page, | |
| public readonly int $perPage, |