php / php/doc-en

sprintf `%lu` specifier

Open
#2,377 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
XML
Stars
596
Forks
890
Avg merge
1d 15h
Merged PRs (30d)
55

Description

per https://github.com/phpstan/phpstan/issues/9072 and https://3v4l.org/SrVYE it seems sprintf supports a %lu modifier.

it is not mentioned at the doc page though
https://www.php.net/manual/en/function.sprintf.php

is it just missing or is this a kind of unsupported feature or similar?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the sprintf documentation page and the linked PHPStan issue and 3v4l reproduction. Verify whether %lu is supported PHP behavior or an undocumented modifier, then document the confirmed status on the sprintf page; completion requires a clear resolution rather than only mentioning the specifier.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.