Skip to content

Wild Wild Wolf

Developer. Because Superhero is not an official job title.

Menu

php

PHP Extensions and C++

PHP Extensions and C++

This article describes some gotchas you may face if you need to use C++ in your extension.

wwa May 12, 2018May 20, 2018 Uncategorized No Comments Read more

PHP: call_user_func_array vs Dynamic Call

PHP: call_user_func_array vs Dynamic Call

PHP 5.6 introduced the splat operator, which unpacks arrays or objects implementing Traversable interfaces into argument lists. Its most evident application is to call functions without having to resort to call_user_func_array(). So, which method is faster?

wwa May 10, 2018May 10, 2018 Uncategorized No Comments Read more

PHP: A Good Algorithm Is Not Always Better

PHP: A Good Algorithm Is Not Always Better

I was looking how to improve performance of Slim’s Http\Cookies::parseHeader() function: as a C developer I find it rather non-optimal because it uses regular expressions and excessive memory allocations. I wondered it it is possible to use the same optimizations that I would use in C and if it gives any benefit.

wwa May 9, 2018May 22, 2018 Uncategorized No Comments Read more

One More Bug in PHP

One More Bug in PHP

For the second time in a row, I find a bug in PHP. This time PHP segfaults due to memory corruption during the request shutdown phase.

wwa May 5, 2018May 5, 2018 Uncategorized No Comments Read more

Found yet Another Memory Leak in PHP

Found yet Another Memory Leak in PHP

When testing your own PHP extensions, it is very important not to miss any memory leaks. Wherever Valgrind shows a memory leak, you need to check your code for bugs. However, sometimes you can find a memory leak in the PHP Core.

wwa May 5, 2018May 22, 2018 Uncategorized No Comments Read more

PHP 7.2 and Valgrind

PHP 7.2 and Valgrind

When valgrind php shows lots of errors like “Conditional jump or move depends on uninitialised value(s)”, chances are that the PHP and PCRE extension were built without Valgrind support.

wwa May 4, 2018May 5, 2018 Uncategorized No Comments Read more

Performance in PHP: Pimple Container

Performance in PHP: Pimple Container

From time to time you have to deal with someone else’s code. And the code you have to deal with sometimes surprises you. For example, Pimple, a small Dependency Injection Container for PHP; recent versions of which, according to README, are more focused on performance. Learning something new is always interesting and sometimes funny, and therefore I started to read the code.

wwa May 2, 2018May 2, 2018 Uncategorized No Comments Read more

Recent Posts

  • Docker Context Issues in GitHub Actions
  • How to Configure Renovate to Update DevContainer Images
  • Using DevContainer CLI to Build Multi-Platform Images with Embedded Features
  • My First Experience with “Hey Code”
  • GitHub Codespaces and Automatic Port Forwarding

Recent Comments

  • Andrey on How to Sign Tags in GitHub Codespaces
  • wwa on Using DevContainer CLI to Build Multi-Platform Images with Embedded Features
  • Raphael on Using DevContainer CLI to Build Multi-Platform Images with Embedded Features
  • wwa on How to Get the Source of an Uncaught Exception in C++
  • Tom Deblauwe on How to Get the Source of an Uncaught Exception in C++

Archives

  • December 2024
  • February 2024
  • February 2023
  • December 2022
  • September 2022
  • June 2022
  • January 2022
  • December 2021
  • October 2021
  • September 2021
  • August 2021
  • June 2021
  • May 2021
  • January 2021
  • December 2020
  • July 2020
  • June 2020
  • May 2020
  • February 2020
  • December 2019
  • November 2019
  • October 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • March 2019
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018

Categories

  • DevOps
  • NodeJS
  • Random Thoughts
  • Server Administration
  • Uncategorized
  • WordPress
Copyright © 2025 Wild Wild Wolf. All rights reserved. Theme Spacious by ThemeGrill. Powered by: WordPress.