This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' based on https://github.com/johthor/DomainStory-PlantUML | |
' Styling | |
' ################################## | |
!global $iconColor = "#333333" | |
!global $iconScale = "0.8" | |
!global $iconScaleActor = "1" | |
!global $stepColor = "#cccccc" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* just trying to parse a header file with clang bound with php ffi ... it´s a start... | |
* and - yes - by binding ffi with ffi.... btw ... ieaks | |
* | |
* playing around in php74 cli buster docker image ... | |
* requires php ffi ext (libffi-dev) installed, clang 10 (libclang-common-10-dev libclang-10-dev) | |
* | |
* libc dlsym docs | |
* http://manpages.ubuntu.com/manpages/bionic/man3/dlsym.3.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
// see http://manpages.ubuntu.com/manpages/bionic/man3/dlsym.3.html | |
$ffi = FFI::cdef( | |
"void *dlsym(void *handle, const char *symbol);" | |
); | |
$pointer = $ffi->dlsym(null, 'zend_write'); // it´s echo ... | |
$zend_write = FFI::new('void*(*)(...)'); // generic function pointer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
XDEBUG_REMOTE_HOST=$(echo $SSH_CLIENT | cut -d "=" -f 2 | awk '{print $1}') | |
alias phpx="export PHP_IDE_CONFIG=serverName=*NameOfServersHostInPHPStorm*;php -dxdebug.remote_enable=1 -dxdebug.remote_host=$XDEBUG_REMOTE_HOST -dxdebug.idekey=PHPSTORM -dxdebug.remote_autostart=1 -dxdebug.remote_connect_back=1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Search regexp: \barray\(([^\(]*?)\) | |
Replace with: [$1] | |
Search & replace until it´s done. | |
Does not work if ( is in array keys or values. | |