Skip to content

Instantly share code, notes, and snippets.

View auroraeosrose's full-sized avatar
💭
Tests tests tests keep me sane

Elizabeth M Smith auroraeosrose

💭
Tests tests tests keep me sane
View GitHub Profile
@auroraeosrose
auroraeosrose / ansible.yml
Created October 27, 2022 14:52
apt-key is deprecated
- 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
@auroraeosrose
auroraeosrose / fix for libxml2 php configure
Created August 24, 2012 17:09
support libxml PHP extension shared and against shared dll on windows
// $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));
@auroraeosrose
auroraeosrose / a
Created February 22, 2013 19:16
How to do arrayobject with multidimensional fun
<?php
$obj1 = new ArrayObject([new ArrayObject([1,2,3]), 1]);
unset($obj1[0][0]);
@auroraeosrose
auroraeosrose / InitialIdeas.md
Created June 19, 2014 23:22
Ideas for merged extension generator

An initial dump of ideas for a php generator

  1. use composer and symfony console tools for cli manipulation
  2. pluggable architecture

components needed - configuration parsing scanning? (helper for generating definitions) templating