Skip to content

WebCheatSheet

The easy way to know

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

Category: PHP

PHP

Map Symfony UniqueEntity Errors to the Correct DTO Field

Sergey KornilovNovember 14, 2026

Set errorPath explicitly when Symfony UniqueEntity maps a DTO property to a differently named Doctrine entity field.

PHP

Use Stateful ESI Fragments from Symfony Stateless Routes

Sergey KornilovNovember 14, 2026

Keep the page shell stateless while moving user-specific ESI content to a separately addressable stateful Symfony route.

PHP

Parse Untrusted XML Safely with PHP XMLReader

Sergey KornilovNovember 13, 2026

Bound the input, disable network access, reject DTDs, and avoid entity-expansion flags when parsing untrusted XML with PHP XMLReader.

PHP

Validate Symfony Integer and Boolean Query Parameters

Sergey KornilovNovember 13, 2026

Distinguish missing Symfony query parameters from empty or invalid values, apply ranges, and return a clear 400 response for bad input.

PHP

Handle PHP zlib Warnings and Exceptions Consistently

Sergey KornilovNovember 12, 2026

Validate zlib options, bound decompression output, and convert operation warnings into a local exception without hiding unrelated PHP failures.

PHP

Replace Curly-Brace String Offsets in PHP 8

Sergey KornilovNovember 12, 2026

Replace legacy $value{0} offset syntax with square brackets, then verify whether the code expects bytes, characters, or array elements.

PHP

Close PHP ZipArchive before Deleting Source Files

Sergey KornilovNovember 11, 2026

Call ZipArchive::close explicitly and check its result before deleting files added to the archive, because writing may be deferred until close.

PHP

Separate Symfony Stateless Routes from Remember-Me Login

Sergey KornilovNovember 11, 2026

Put stateless API routes under a separate Symfony firewall so remember-me authentication does not cause unexpected session access.

PHP

Validate Laravel Broadcasting Authentication Inputs

Sergey KornilovNovember 11, 2026

Validate socket_id and channel_name before Laravel broadcasting authentication so malformed requests return a client error instead of HTTP 500.

PHP

Handle PostgreSQL 18 RESTRICT Errors in Doctrine DBAL

Sergey KornilovNovember 10, 2026

Recognize SQLSTATE 23001 after a PostgreSQL 18 upgrade, update Doctrine DBAL, and keep a narrow compatibility fallback.

Posts navigation

Older posts
Newer posts

Recent Posts

  • Reject NUL Bytes Before Symfony DateTime Validation
  • Create a PostgreSQL Schema Before Running Laravel Migrations
  • Verify an SSIS Build Artifact When Connection Managers Are Missing
  • Reject Invalid Symfony UUIDs Before Doctrine Queries
  • Do Not Use Twig _self as a Stable Translation or Cache Key

Recent Comments

  1. Build Accessible Tabs with JavaScript - WebCheatSheet on JavaScript Functions
  2. Remove SQL Server STX Characters before FOR XML – WebCheatSheet on Export a MySQL Database Schema as XML with PHP
  3. Parse Untrusted XML Safely with PHP XMLReader – WebCheatSheet on Export a MySQL Database Schema as XML with PHP
  4. Replace Curly-Brace String Offsets in PHP 8 – WebCheatSheet on PHP Arrays: Indexed, Associative, and Multidimensional
  5. Detect Hidden Document Text before LLM Ingestion – WebCheatSheet on Extract Text from a PDF with PHP

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.