GitXplorerGitXplorer
W

simple-php-extension-wdf85

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
8259ed5bb81bd4224f4666eb5c5a2ed5491750cc

Input parameters no longer optional

WWolfWings committed 4 years ago
Unverified
6e6afc9646f4a7a8c3f57015351d859c222f3b10

Improving 'coverage' regex to skip headers by file extension

WWolfWings committed 4 years ago
Unverified
8f19841b8a482905fef263100aae631ee5afdfb9

Initial release commit

WWolfWings committed 4 years ago
Verified
9ad8e5ac1b70822e2ce1228dd659b5281077dd5a

Initial commit

WWolfWings committed 4 years ago

README

The README file for this repository.

PHP Extensions

With the modern 7.x and later PHP codebase writing a fully self-contained extension is much easier than it was on the older 5.x codebase, however most tutorials and even most books still rely on the older phpize based approach which generates literally megabytes of automated scripting.

Using php-config directly allows for much smaller, more readable Makefile creation, without relying on large automake and related scripting to compile what is often only a handful of source files.

What is wdf85?

The name is based on a typography failure I've encountered with my actual name "Wolf" where the "ol" sequence failed to kern correctly because a much older FreeType library was installed with all the expired patent concerns still enabled.

The actual tool itself is a minor variant on Ascii85 encoding, adjusting the output character map to make it cookie safe by adding characters unused in the default Ascii85 encoding to replace earlier ones.

A single strtr() call on the "encoded" state can convert the output to normal Ascii85 encoding if needed. Otherwise this is merely a 'fully functional toy' to aide in showing how this approach using a classical Makefile would work while still including full validation and code coverage tests.