Skip to content

WebCheatSheet

The easy way to know

  • PHP
  • HTML
  • JavaScript
  • SQL
  • ASP
  • MS Access Functions
  • SaaS
  • Email
PHP

Fix Invalid Regex Escapes After Moving to PHP 8

Sergey KornilovNovember 27, 2026

Use explicit escaping for literals and diagnose preg_match() compilation failures after moving to PHP 8.

PHP

Handle Invalid Read Lengths in PHP File Functions

Sergey KornilovNovember 27, 2026

Validate read lengths for fgets() and file_get_contents() and distinguish invalid arguments from empty output and end of file.

SQL

Resolve DbUp Hotfix Migration Conflicts in SQL Server

Sergey KornilovNovember 27, 2026

Reconcile a SQL Server hotfix migration that succeeds on the release branch but fails against a newer schema.

PHP

Distinguish PHP stream_select Timeouts from Readable Streams

Sergey KornilovNovember 26, 2026

Interpret zero, false and positive stream_select results correctly and keep polling loops from spinning.

PHP

Set UTF-8 Output for a PHP gettext Domain

Sergey KornilovNovember 26, 2026

Bind a gettext domain to UTF-8 explicitly and interpret false correctly when querying the current codeset.

PHP

Combine CSV Columns into an RDF Literal with CSVW

Sergey KornilovNovember 26, 2026

Generate a derived CSV column before CSVW conversion to produce an RDF literal from two source columns.

PHP

Fix PHP set_error_handler Callbacks with Five Parameters

Sergey KornilovNovember 25, 2026

Update a PHP error callback to accept the four arguments PHP 8 supplies, and restore the original handler when the operation ends.

PHP

Replace Curly Brace String Offsets in PHP 8

Sergey KornilovNovember 25, 2026

Replace curly braces with square brackets for string and array offsets in PHP 8, including legacy code that reads hexadecimal color values.

PHP

Read Symbolic Link and Target Metadata Separately in PHP

Sergey KornilovNovember 25, 2026

Use lstat() to inspect a symbolic link and stat() to inspect the target. Here is how to read sizes and diagnose a broken link.

PHP

Validate Database Image BLOBs before Decoding with PHP GD

Sergey KornilovNovember 24, 2026

Reject non-image or oversized BLOB values before passing database data to imagecreatefromstring in PHP GD.

Posts navigation

Older posts

Recent Posts

  • Fix Invalid Regex Escapes After Moving to PHP 8
  • Handle Invalid Read Lengths in PHP File Functions
  • Resolve DbUp Hotfix Migration Conflicts in SQL Server
  • Distinguish PHP stream_select Timeouts from Readable Streams
  • Set UTF-8 Output for a PHP gettext Domain

Recent Comments

  1. Fix Invalid Regex Escapes After Moving to PHP 8 - WebCheatSheet on PHP Regular Expressions: preg_match, Replace, Split, and Grep
  2. Set UTF-8 Output for a PHP gettext Domain - WebCheatSheet on PHP Variables, Types, and Scope
  3. Combine CSV Columns into an RDF Literal with CSVW - WebCheatSheet on Create Word, Excel, and CSV Files with PHP
  4. Replace Curly Brace String Offsets in PHP 8 - WebCheatSheet on PHP Variables, Types, and Scope
  5. Fix PHP set_error_handler Callbacks with Five Parameters - WebCheatSheet on PHP Functions: Parameters, Return Types, and Scope

Archives

  • November 2026
  • October 2026
  • September 2026
  • August 2026
  • October 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022

Categories

  • ASP
  • Email
  • HTML
  • JavaScript
  • MS Access Functions
  • PHP
  • SaaS Architecture
  • SQL
  • Uncategorized
Copyright © 2026 WebCheatSheetFresh News by Ascendoor | Powered by WordPress.