Page MenuHomePhorge
Feed Advanced Search

Aug 8 2023

Sten added a comment to T15596: PHP 8.2 "strlen(): Passing null to parameter #1 ($string) of type string is deprecated" in configuration.

Testing with my PHP 8.1, I can't replicate this. But I do have a bunch of PHP 8.1 fixes in place which are still awaiting approval.

Aug 8 2023, 23:05 · PHP 8 support
Sten accepted D25078: Trigger: Capitalize most Buzzwords in our Weird Way as usual.

Apart from the pre-existing 'Statues' typo, looks good to me...

Aug 8 2023, 10:59

Aug 7 2023

Sten added a comment to T15586: arcanist EXCEPTION: (CommandException) Command failed with error #-1!.

The issue is in a change which went in with PHP 8.1.22, and is being reverted in PHP 8.1.23.
@aklapper - as PHP 8.2.9 isn't released yet, I assume you compiled from source? If you 'git pull' and recompile, the latest 8.2.9-dev should work. The fix was committed Aug 2 21:08:52.

Aug 7 2023, 09:35

Aug 4 2023

Sten closed T15586: arcanist EXCEPTION: (CommandException) Command failed with error #-1! as Wontfix.
Aug 4 2023, 08:04
Sten added a comment to T15586: arcanist EXCEPTION: (CommandException) Command failed with error #-1!.

Raised PHP bug https://github.com/php/php-src/issues/11871

Aug 4 2023, 08:02
Sten added a comment to T15586: arcanist EXCEPTION: (CommandException) Command failed with error #-1!.
Aug 4 2023, 07:48

Aug 3 2023

Sten created T15586: arcanist EXCEPTION: (CommandException) Command failed with error #-1!.
Aug 3 2023, 15:58
Sten updated the diff for D25333: Fix DifferentialDiff getFieldValuesForConduit PHP 8.1 strlen(null) errors.

We do need the null check - but only for the unit test when the diff is not associated with a repository.
For live use, getSourceControlBaseRevision() will always return a string.

Aug 3 2023, 09:45
Sten planned changes to D25333: Fix DifferentialDiff getFieldValuesForConduit PHP 8.1 strlen(null) errors.
Aug 3 2023, 09:30
Sten updated the diff for D25333: Fix DifferentialDiff getFieldValuesForConduit PHP 8.1 strlen(null) errors.
  • Just checked the getSourceControlBaseRevision() functions
Aug 3 2023, 09:30

Jul 30 2023

Sten updated the diff for D25367: Various PHP 8.1 strlen(null) fixes for Dashboard Panels.

Yeah, we can use isset() and strlen() in place of phutil_nonempty_string(), and I'm happy to do it.

Jul 30 2023, 20:21

Jul 29 2023

Sten added inline comments to D25367: Various PHP 8.1 strlen(null) fixes for Dashboard Panels.
Jul 29 2023, 19:50
Sten requested review of D25367: Various PHP 8.1 strlen(null) fixes for Dashboard Panels.
Jul 29 2023, 19:46
Sten added a revision to T15574: PHP8.1: strlen() null exception when creating a tab panel in a dashboard: D25367: Various PHP 8.1 strlen(null) fixes for Dashboard Panels.
Jul 29 2023, 19:46 · PHP 8 support
Sten claimed T15574: PHP8.1: strlen() null exception when creating a tab panel in a dashboard.
Jul 29 2023, 18:57 · PHP 8 support
Sten closed D25364: Fix arc patch PHP 8.1 strlen(null) error.
Jul 29 2023, 16:36
Sten closed T15571: Arc Patch fails with PHP 8.1 strlen(null) error as Resolved by committing rP4cedb928aa20: Fix arc patch PHP 8.1 strlen(null) error.
Jul 29 2023, 16:36 · PHP 8 support
Sten closed T15571: Arc Patch fails with PHP 8.1 strlen(null) error, a subtask of T15064: Make Phorge compatible with PHP 8.1/8.2/8.3/8.4, as Resolved.
Jul 29 2023, 16:36 · PHP 8 support
Sten committed rP4cedb928aa20: Fix arc patch PHP 8.1 strlen(null) error.
Fix arc patch PHP 8.1 strlen(null) error
Jul 29 2023, 16:36
Sten added a comment to D25364: Fix arc patch PHP 8.1 strlen(null) error.

$edit_mode has a true value for 'create' or 'edit', and false (null) for read. The strlen() is superfluous.

maybe add that as a comment in there...

Jul 29 2023, 16:35
Sten closed D25365: Fix HarbormasterBuildUnitMessage PHP 8.1 strlen(null) error.
Jul 29 2023, 12:04
Sten committed rP007e7621f298: Fix HarbormasterBuildUnitMessage PHP 8.1 strlen(null) error.
Fix HarbormasterBuildUnitMessage PHP 8.1 strlen(null) error
Jul 29 2023, 12:04
Sten closed T15572: HarbormasterBuildUnit fails with PHP 8.1 strlen(null) error as Resolved by committing rP007e7621f298: Fix HarbormasterBuildUnitMessage PHP 8.1 strlen(null) error.
Jul 29 2023, 12:04 · PHP 8 support
Sten closed T15572: HarbormasterBuildUnit fails with PHP 8.1 strlen(null) error, a subtask of T15064: Make Phorge compatible with PHP 8.1/8.2/8.3/8.4, as Resolved.
Jul 29 2023, 12:04 · PHP 8 support
Sten closed D25366: Fix PHP 8.1 Diffusion history errors.
Jul 29 2023, 12:04
Sten closed T15573: Multiple Diffusion history PHP 8.1 null errors, a subtask of T15064: Make Phorge compatible with PHP 8.1/8.2/8.3/8.4, as Resolved.
Jul 29 2023, 12:04 · PHP 8 support
Sten closed T15573: Multiple Diffusion history PHP 8.1 null errors as Resolved by committing rP1802ebd2ccc1: Fix PHP 8.1 Diffusion history errors.
Jul 29 2023, 12:04 · PHP 8 support
Sten committed rP1802ebd2ccc1: Fix PHP 8.1 Diffusion history errors.
Fix PHP 8.1 Diffusion history errors
Jul 29 2023, 12:03
Sten requested review of D25366: Fix PHP 8.1 Diffusion history errors.
Jul 29 2023, 11:52
Sten added a revision to T15573: Multiple Diffusion history PHP 8.1 null errors: D25366: Fix PHP 8.1 Diffusion history errors.
Jul 29 2023, 11:52 · PHP 8 support
Sten claimed T15573: Multiple Diffusion history PHP 8.1 null errors.
Jul 29 2023, 11:39 · PHP 8 support
Sten created T15573: Multiple Diffusion history PHP 8.1 null errors.
Jul 29 2023, 11:39 · PHP 8 support
Sten added inline comments to D25365: Fix HarbormasterBuildUnitMessage PHP 8.1 strlen(null) error.
Jul 29 2023, 11:24
Sten requested review of D25365: Fix HarbormasterBuildUnitMessage PHP 8.1 strlen(null) error.
Jul 29 2023, 11:21
Sten added a revision to T15572: HarbormasterBuildUnit fails with PHP 8.1 strlen(null) error: D25365: Fix HarbormasterBuildUnitMessage PHP 8.1 strlen(null) error.
Jul 29 2023, 11:21 · PHP 8 support
Sten claimed T15572: HarbormasterBuildUnit fails with PHP 8.1 strlen(null) error.
Jul 29 2023, 11:14 · PHP 8 support
Sten created T15572: HarbormasterBuildUnit fails with PHP 8.1 strlen(null) error.
Jul 29 2023, 11:14 · PHP 8 support
Sten requested review of D25364: Fix arc patch PHP 8.1 strlen(null) error.

Request review for the second part of the change!

Jul 29 2023, 11:02
Sten updated the diff for D25364: Fix arc patch PHP 8.1 strlen(null) error.

$edit_mode has a true value for 'create' or 'edit', and false (null) for read. The strlen() is superfluous.

Jul 29 2023, 11:01
Sten updated the task description for T15571: Arc Patch fails with PHP 8.1 strlen(null) error.
Jul 29 2023, 10:52 · PHP 8 support
Sten requested review of D25364: Fix arc patch PHP 8.1 strlen(null) error.
Jul 29 2023, 10:41
Sten added a revision to T15571: Arc Patch fails with PHP 8.1 strlen(null) error: D25364: Fix arc patch PHP 8.1 strlen(null) error.
Jul 29 2023, 10:41 · PHP 8 support
Sten claimed T15571: Arc Patch fails with PHP 8.1 strlen(null) error.
Jul 29 2023, 10:37 · PHP 8 support
Sten updated the task description for T15571: Arc Patch fails with PHP 8.1 strlen(null) error.
Jul 29 2023, 10:37 · PHP 8 support
Sten created T15571: Arc Patch fails with PHP 8.1 strlen(null) error.
Jul 29 2023, 10:37 · PHP 8 support

Jul 28 2023

Sten closed T15569: git push into a fresh repository fails with PHP 8.1 strlen(null) error, a subtask of T15064: Make Phorge compatible with PHP 8.1/8.2/8.3/8.4, as Resolved.
Jul 28 2023, 17:23 · PHP 8 support
Sten closed T15569: git push into a fresh repository fails with PHP 8.1 strlen(null) error as Resolved by committing rP189a5d60478e: Fix strlen(null) PHP 8.1 error when pushing into a fresh repository.
Jul 28 2023, 17:23 · PHP 8 support
Sten closed D25361: Fix strlen(null) PHP 8.1 error when pushing into a fresh repository.
Jul 28 2023, 17:23
Sten committed rP189a5d60478e: Fix strlen(null) PHP 8.1 error when pushing into a fresh repository (authored by c7574226 <steve.campbell@virginmediao2.co.uk>).
Fix strlen(null) PHP 8.1 error when pushing into a fresh repository
Jul 28 2023, 17:23
Sten added inline comments to D25333: Fix DifferentialDiff getFieldValuesForConduit PHP 8.1 strlen(null) errors.
Jul 28 2023, 13:56
Sten updated the diff for D25333: Fix DifferentialDiff getFieldValuesForConduit PHP 8.1 strlen(null) errors.

Explicitly check for null instead of using phutil_nonempty_string()

Jul 28 2023, 13:55
Sten added inline comments to D25353: Fix PHP 8.1 trim(null) exception in ./bin/diviner generate.
Jul 28 2023, 13:47
Sten requested review of D25361: Fix strlen(null) PHP 8.1 error when pushing into a fresh repository.
Jul 28 2023, 13:28
Sten added a revision to T15569: git push into a fresh repository fails with PHP 8.1 strlen(null) error: D25361: Fix strlen(null) PHP 8.1 error when pushing into a fresh repository.
Jul 28 2023, 13:28 · PHP 8 support
Sten claimed T15569: git push into a fresh repository fails with PHP 8.1 strlen(null) error.
Jul 28 2023, 13:23 · PHP 8 support
Sten created T15569: git push into a fresh repository fails with PHP 8.1 strlen(null) error.
Jul 28 2023, 13:23 · PHP 8 support

Jul 18 2023

Sten closed T15476: PHP 8.1 "strlen(null)" exception trying to stop maintenance mode of Diffusion repo, a subtask of T15064: Make Phorge compatible with PHP 8.1/8.2/8.3/8.4, as Resolved.
Jul 18 2023, 08:06 · PHP 8 support
Sten closed D25296: Fix PHP 8.1 "strlen(null)" exception trying to stop maintenance mode of Diffusion repo.
Jul 18 2023, 08:06
Sten closed T15476: PHP 8.1 "strlen(null)" exception trying to stop maintenance mode of Diffusion repo as Resolved by committing rPcb9fcf18d5c3: Fix PHP 8.1 "strlen(null)" exception trying to stop maintenance mode of….
Jul 18 2023, 08:06 · Diffusion, PHP 8 support
Sten committed rPcb9fcf18d5c3: Fix PHP 8.1 "strlen(null)" exception trying to stop maintenance mode of….
Fix PHP 8.1 "strlen(null)" exception trying to stop maintenance mode of…
Jul 18 2023, 08:06

Jul 17 2023

Sten updated the diff for D25296: Fix PHP 8.1 "strlen(null)" exception trying to stop maintenance mode of Diffusion repo.

Tested valerio's suggestion -
$is_start = $message !== null;

Jul 17 2023, 13:40
Sten commandeered D25296: Fix PHP 8.1 "strlen(null)" exception trying to stop maintenance mode of Diffusion repo.
Jul 17 2023, 13:35
Sten closed D25352: Fix PHP 8.1 strlen(null) error in PhabricatorFile::newChunkedFile().
Jul 17 2023, 13:25
Sten closed T15499: PHP 8.2 "strlen(null)" exception when executing Conduit file.allocate as Resolved by committing rP27fa49896622: Fix PHP 8.1 strlen(null) error in PhabricatorFile::newChunkedFile().
Jul 17 2023, 13:24 · Conduit, PHP 8 support
Sten closed T15499: PHP 8.2 "strlen(null)" exception when executing Conduit file.allocate, a subtask of T15064: Make Phorge compatible with PHP 8.1/8.2/8.3/8.4, as Resolved.
Jul 17 2023, 13:24 · PHP 8 support
Sten committed rP27fa49896622: Fix PHP 8.1 strlen(null) error in PhabricatorFile::newChunkedFile().
Fix PHP 8.1 strlen(null) error in PhabricatorFile::newChunkedFile()
Jul 17 2023, 13:24
Sten closed T15555: PHP 8.2: "substr(null) exception" in People > Activity Logs, a subtask of T15064: Make Phorge compatible with PHP 8.1/8.2/8.3/8.4, as Resolved.
Jul 17 2023, 13:23 · PHP 8 support
Sten closed T15555: PHP 8.2: "substr(null) exception" in People > Activity Logs as Resolved by committing rPdbc101ca8ae1: Fix PHP 8.1 substr(null) in People > Activity Logs.
Jul 17 2023, 13:23 · PHP 8 support
Sten closed D25351: Fix PHP 8.1 substr(null) in People > Activity Logs.
Jul 17 2023, 13:23
Sten committed rPdbc101ca8ae1: Fix PHP 8.1 substr(null) in People > Activity Logs.
Fix PHP 8.1 substr(null) in People > Activity Logs
Jul 17 2023, 13:23
Sten added a comment to T15399: PHP 8.2 strlen() null issues when arc-diffing.

Do you need to be able to replicate it? The fault does seem rather obvious in the code -

Jul 17 2023, 13:17 · Clarification Needed, PHP 8 support
Sten reassigned T15476: PHP 8.1 "strlen(null)" exception trying to stop maintenance mode of Diffusion repo from Sten to aklapper.

Andre already has a diff already out for this...

Jul 17 2023, 13:05 · Diffusion, PHP 8 support
Sten added a comment to D25296: Fix PHP 8.1 "strlen(null)" exception trying to stop maintenance mode of Diffusion repo.

Changing to the (bool)strlen() to phutil_nonempty_string() is the simplest fix...

Jul 17 2023, 13:04
Sten abandoned D25354: Fix PHP 8.1 strlen(null) when taking a repo out of maintenance mode..

D25296 already out for this

Jul 17 2023, 13:03
Sten requested review of D25354: Fix PHP 8.1 strlen(null) when taking a repo out of maintenance mode..
Jul 17 2023, 13:02
Sten added a revision to T15476: PHP 8.1 "strlen(null)" exception trying to stop maintenance mode of Diffusion repo: D25354: Fix PHP 8.1 strlen(null) when taking a repo out of maintenance mode..
Jul 17 2023, 13:02 · Diffusion, PHP 8 support
Sten claimed T15476: PHP 8.1 "strlen(null)" exception trying to stop maintenance mode of Diffusion repo.

Have replicated the fault.

Jul 17 2023, 13:01 · Diffusion, PHP 8 support
Sten requested review of D25353: Fix PHP 8.1 trim(null) exception in ./bin/diviner generate.
Jul 17 2023, 12:56
Sten added a revision to T15548: PHP 8.2 "ltrim(null)" exception while executing ./bin/diviner generate: D25353: Fix PHP 8.1 trim(null) exception in ./bin/diviner generate.
Jul 17 2023, 12:56 · PHP 8 support
Sten claimed T15548: PHP 8.2 "ltrim(null)" exception while executing ./bin/diviner generate.

Fixable using coalesce

Jul 17 2023, 12:53 · PHP 8 support
Sten updated the test plan for D25352: Fix PHP 8.1 strlen(null) error in PhabricatorFile::newChunkedFile().
Jul 17 2023, 12:29
Sten requested review of D25352: Fix PHP 8.1 strlen(null) error in PhabricatorFile::newChunkedFile().
Jul 17 2023, 12:29
Sten added a revision to T15499: PHP 8.2 "strlen(null)" exception when executing Conduit file.allocate: D25352: Fix PHP 8.1 strlen(null) error in PhabricatorFile::newChunkedFile().
Jul 17 2023, 12:29 · Conduit, PHP 8 support
Sten claimed T15499: PHP 8.2 "strlen(null)" exception when executing Conduit file.allocate.
Jul 17 2023, 12:24 · Conduit, PHP 8 support
Sten requested review of D25351: Fix PHP 8.1 substr(null) in People > Activity Logs.
Jul 17 2023, 12:05
Sten added a revision to T15555: PHP 8.2: "substr(null) exception" in People > Activity Logs: D25351: Fix PHP 8.1 substr(null) in People > Activity Logs.
Jul 17 2023, 12:05 · PHP 8 support
Sten claimed T15555: PHP 8.2: "substr(null) exception" in People > Activity Logs.
Jul 17 2023, 12:01 · PHP 8 support
Sten added a comment to T15554: Handling PHP deprecations: convert to Setup Issues.

I agree that Phorge should not fall over because of a deprecation warning.

Jul 17 2023, 11:56 · Phorge
Sten closed T15532: PhabricatorRepository generateURI generates multiple strlen(null) errors under PHP 8.1, a subtask of T15064: Make Phorge compatible with PHP 8.1/8.2/8.3/8.4, as Resolved.
Jul 17 2023, 10:07 · PHP 8 support
Sten closed T15532: PhabricatorRepository generateURI generates multiple strlen(null) errors under PHP 8.1 as Resolved by committing rP849e18ccbbea: Fix PhabricatorRepository generateURI PHP 8.1 strlen(null) errors.
Jul 17 2023, 10:07 · PHP 8 support
Sten closed D25336: Fix PhabricatorRepository generateURI PHP 8.1 strlen(null) errors.
Jul 17 2023, 10:07
Sten committed rP849e18ccbbea: Fix PhabricatorRepository generateURI PHP 8.1 strlen(null) errors.
Fix PhabricatorRepository generateURI PHP 8.1 strlen(null) errors
Jul 17 2023, 10:07
Sten closed T15522: Top level diffusion repository view fails under PHP 8.1 with passing null to trim(), a subtask of T15064: Make Phorge compatible with PHP 8.1/8.2/8.3/8.4, as Resolved.
Jul 17 2023, 10:05 · PHP 8 support
Sten closed T15522: Top level diffusion repository view fails under PHP 8.1 with passing null to trim() as Resolved by committing rP8af16246920c: Fix passing null to trim() error in DiffusionBrowseTableView render().
Jul 17 2023, 10:05 · PHP 8 support
Sten closed D25329: Fix passing null to trim() error in DiffusionBrowseTableView render().
Jul 17 2023, 10:05
Sten committed rP8af16246920c: Fix passing null to trim() error in DiffusionBrowseTableView render().
Fix passing null to trim() error in DiffusionBrowseTableView render()
Jul 17 2023, 10:05
Sten closed T15518: PHP 8.1 trim(NULL) error in PhabricatorEditorURIEngine::newForViewer(), a subtask of T15064: Make Phorge compatible with PHP 8.1/8.2/8.3/8.4, as Resolved.
Jul 17 2023, 10:04 · PHP 8 support
Sten closed T15518: PHP 8.1 trim(NULL) error in PhabricatorEditorURIEngine::newForViewer() as Resolved by committing rP65e57fe23dd3: Fix PHP 8.1 PhabricatorEditorURIEngine::newForViewer() trim(NULL) error.
Jul 17 2023, 10:04 · PHP 8 support
Sten closed D25324: Fix PHP 8.1 PhabricatorEditorURIEngine::newForViewer() trim(NULL) error.
Jul 17 2023, 10:04
Sten committed rP65e57fe23dd3: Fix PHP 8.1 PhabricatorEditorURIEngine::newForViewer() trim(NULL) error.
Fix PHP 8.1 PhabricatorEditorURIEngine::newForViewer() trim(NULL) error
Jul 17 2023, 10:04