An initial dump of ideas for a php generator
- use composer and symfony console tools for cli manipulation
- pluggable architecture
components needed - configuration parsing scanning? (helper for generating definitions) templating
| - name: Get PHP GPG key - I hate ubuntu | |
| command: gpg --homedir /tmp --no-default-keyring --keyring /tmp/php.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 14AA40EC0831756756D7F66C4F4EA0AAE5267A6C | |
| - name: Export keybox format | |
| shell: gpg --no-default-keyring --keyring /tmp/php.gpg --export > /etc/apt/trusted.gpg.d/php.gpg | |
| - name: Install PHP repository | |
| apt_repository: | |
| repo: "deb https://ppa.launchpadcontent.net/ondrej/php/ubuntu {{ ansible_distribution_release }} main" | |
| state: present |
| // $Id$ | |
| // vim:ft=javascript | |
| ARG_WITH("libxml", "LibXML support", "yes"); | |
| ARG_WITH("libxmlshared", "LibXML support", "no"); | |
| if (PHP_LIBXMLSHARED == "yes") { | |
| PHP_LIBXML = PHP_LIBXMLSHARED; | |
| PHP_LIBXML_SHARED = PHP_LIBXMLSHARED_SHARED; | |
| if (CHECK_LIB("libxml2.lib", "libxml") && |
| This is only showing up right NOW for me in IIS10 with Fastcgi and PHP 7.2 | |
| This is NOT broken in PHP 7.1, so I'd argue this is a regression somewhere | |
| <?php | |
| //header('HTTP/1.1 403 Forbidden'); | |
| //header('HTTP/1.1 403 Forbidden', true, 403); | |
| http_response_code(403); | |
| Any line but the last gives me a 200 OK response | |
| If you run the header code and then try to set the http_response_code you can't |
| --- libmemcached-1.0.18/Makefile.am 2014-02-09 20:52:42.000000000 +0900 | |
| +++ libmemcached-1.0.18/Makefile.am 2014-02-16 23:42:32.265163300 +0900 | |
| @@ -2,6 +2,7 @@ | |
| ACLOCAL_AMFLAGS= -I m4 -I libtest/m4 | |
| AM_YFLAGS= -d | |
| +AM_LDFLAGS = -no-undefined | |
| # includes append to these: | |
| SUFFIXES = |
| PHP Extensions Tutorial | |
| The best way to learn about writing extensions is - to write an | |
| extension! If you want to "code along", you'll need to be set up to | |
| compile PHP 7 extensions, have a checkout of the example code we'll be | |
| using, and have the C library we'll be "wrapping" available on your | |
| system. | |
| All the code we'll be working with is available from | |
| https://github.com/auroraeosrose/php-extensions-code |
| 1. create a culture of sharing teaching in phpmentoring | |
| a. getting a blog set up | |
| b. teaching the channel to capture and create an issue for each good conversation we get in phpmentoring | |
| c. cultivate getting members to write up these into blog posts | |
| d. cultivating more good discussions in phpmentoring channel | |
| 2. Some marketing for phpmentoring | |
| a. the blog on a roll - once a week would be great but my real goal is daily (well not on weekends) posts | |
| b. logo and design done - integrate into the site | |
| c. stickers and possibly other swag for those who attend conferences | |
| d. some community push for "this is what we do and why, come be a part of it" |
| Verifying that +auroraeosrose is my blockchain ID. https://onename.com/auroraeosrose |
| <?php | |
| $url = 'https://verifier.login.persona.org/verify'; | |
| $data = 'assertion='.$_POST['assertion'].'&audience=http://persona.localhost:80'; | |
| $params = array('http' => array( | |
| 'method' => 'POST', | |
| 'content' => $data | |
| ), | |
| 'ssl' => array('verify_peer' => true | |
| 'verify_host' => true)); |
| <?php | |
| $obj1 = new ArrayObject([new ArrayObject([1,2,3]), 1]); | |
| unset($obj1[0][0]); |
An initial dump of ideas for a php generator
components needed - configuration parsing scanning? (helper for generating definitions) templating