Success! I finally got php8 + gd to compile on macOS. I had to `sudo port uninstall gd2`, otherwise I guess the libraries were getting entangled and it was confusing the build system.

phpc.social/@kboyd/10529580168

Oof, the method for Strike 2 is itself a multi-strike. It has another Strike 1. But at least it's not tied to a specific implementation.

Show thread

I want to unit test a method that is 18 lines long, and there's so much going on that I don't think I can ... at least not in the same repo it lives in.

Strike 1: Internal static array cache
Strike 2: Invocation of a static method to do some work
Strike 3: Hard-coded constant referencing *one* project that it is included from

Diagnosis: Rewrite

kboyd boosted

For Cyber Monday, we’re offering PHP 8.0 for free! Go download it today! php.net/releases/8.0/en.php

kboyd boosted

I don't normally repost my twitter content here, due to my belief that repost-bots are actually a detriment to platform growth, but I thought I'd manually repost this one:

"Agreement doesn't lead to clicks. No clicks, no profit. Therefore, unless they find a way to break the feedback loop powering their profits, it is the function of a profit-based social network to wilfully - gleefully - tear itself apart."

Does anyone know of a php8 Docker image with imagemagick enabled that i can use for some CLI tasks? Preferably one of the tags on the official PHP images

Hmm, I've failed to unlock the secret of compiling php8 with gd support on macOS. Using --enable-gd causes complaints of duplicated/differing symbols. 🤷

Maybe "^7.2|^8.0" ... or will someone yell at me for that?

Show thread

Hmm, I need to replace "php": "^7.2" in a composer.json ... so that it can support 7.2-8.0 ... suggestions?

Show thread

Yay, make clean did work. But now I need to figure out how to enable openssl 😂

Show thread

It's the weekend, so naturally I'm up past midnight attempting to compile PHP8 on macos and hitting an obstacle (something about mbstring + pcre was causing an error from ld about symbols not being found .... I dunno. Maybe make clean fixed it? Probably not.)

Wrote a quick blog post about it with a short demo of how it can be embedded into blog posts: whateverthing.com/blog/2020/11

Show thread

TIL about phpsandbox.io - similar to a tool I started but never shipped, and it includes support for Composer dependencies.

Ran into a bunch of Composer issues at work today ... weirdness partially related to Composer 2 (but not all of it was). Ah well.

A few days ago, I uploaded my latest ROV dive video to YouTube. It's intended to be a relaxing watching experience ... just saying. youtube.com/watch?v=NqIu-7w20a

I don't normally repost my twitter content here, due to my belief that repost-bots are actually a detriment to platform growth, but I thought I'd manually repost this one:

"Agreement doesn't lead to clicks. No clicks, no profit. Therefore, unless they find a way to break the feedback loop powering their profits, it is the function of a profit-based social network to wilfully - gleefully - tear itself apart."

Started yet another project last night. This time I'm going to practice README-driven development, by mapping out the goals and features of the project in the readme and then implementing them.

I'm sure it'll soon wash up on the Shores of Abandonment like all of my other projects, but what else can you do when your hobby is apparently "thinking of new projects, making a tiny bit of progress, and then forgetting about them"?

Show more
PHP Community on Mastodon

Open source. Open community. We are dedicated to building and enriching the PHP community.