Page MenuHomePhorge
Feed All Stories

Jul 4 2023

Sten claimed T15522: Top level diffusion repository view fails under PHP 8.1 with passing null to trim().
Jul 4 2023, 14:55 · PHP 8 support
Sten created T15522: Top level diffusion repository view fails under PHP 8.1 with passing null to trim().
Jul 4 2023, 14:55 · PHP 8 support
Sten requested review of D25328: Fix strlen(null) in DifferentialChangesetViewController loadCoverage().
Jul 4 2023, 14:19
Sten added a revision to T15521: Viewing a diff with code coverage for some but not all files fails with strlen(null) under PHP 8.1: D25328: Fix strlen(null) in DifferentialChangesetViewController loadCoverage().
Jul 4 2023, 14:19 · PHP 8 support
Sten claimed T15521: Viewing a diff with code coverage for some but not all files fails with strlen(null) under PHP 8.1.
Jul 4 2023, 14:12 · PHP 8 support
Sten created T15521: Viewing a diff with code coverage for some but not all files fails with strlen(null) under PHP 8.1.
Jul 4 2023, 14:12 · PHP 8 support
Sten updated the diff for D25323: Fix PHP 8.1 issue in DifferentialChangeset getOldStatePathVector().

Update as per peer review

Jul 4 2023, 12:50
Sten added a revision to T15520: git pull from PHP 8.1 Phorge using https URL fails with strlen() null error: D25327: PHP8.1 fix for DiffusionServeController serveRequest().
Jul 4 2023, 11:12 · PHP 8 support
Sten updated the summary of D25327: PHP8.1 fix for DiffusionServeController serveRequest().
Jul 4 2023, 11:12
Sten requested review of D25327: PHP8.1 fix for DiffusionServeController serveRequest().
Jul 4 2023, 11:12
valerio.bozzolan added inline comments to D25323: Fix PHP 8.1 issue in DifferentialChangeset getOldStatePathVector().
Jul 4 2023, 10:44
Sten claimed T15520: git pull from PHP 8.1 Phorge using https URL fails with strlen() null error.
Jul 4 2023, 10:43 · PHP 8 support
Sten created T15520: git pull from PHP 8.1 Phorge using https URL fails with strlen() null error.
Jul 4 2023, 10:43 · PHP 8 support
Sten added a comment to D25323: Fix PHP 8.1 issue in DifferentialChangeset getOldStatePathVector().

Yeah - spotted & fixed!

Jul 4 2023, 10:36
Sten updated the diff for D25323: Fix PHP 8.1 issue in DifferentialChangeset getOldStatePathVector().

PHP != Perl

Jul 4 2023, 10:35
valerio.bozzolan added inline comments to D25323: Fix PHP 8.1 issue in DifferentialChangeset getOldStatePathVector().
Jul 4 2023, 09:58
Sten planned changes to D25323: Fix PHP 8.1 issue in DifferentialChangeset getOldStatePathVector().
Jul 4 2023, 09:57
avivey closed D25325: Fix int fields for now.
Jul 4 2023, 09:26
avivey closed T15516: Regression in PhabricatorStandardCustomField.php:304 - field can be an integer as Resolved by committing rP603cf474ee1d: Fix int fields for now.
Jul 4 2023, 09:26 · Bug Reports
avivey committed rP603cf474ee1d: Fix int fields for now.
Fix int fields for now
Jul 4 2023, 09:26
avivey accepted D25299: Remarkup Code-block: parse language specifier in markdown.
Jul 4 2023, 09:10
valerio.bozzolan accepted D25325: Fix int fields for now.

Thanks for the fix! <3

Jul 4 2023, 09:07
avivey closed D25326: Add explicit tests for phutil_string_cast.
Jul 4 2023, 09:06
avivey committed rARC152ba1f02a31: Add explicit tests for phutil_string_cast.
Add explicit tests for phutil_string_cast
Jul 4 2023, 09:06
avivey updated the diff for D25326: Add explicit tests for phutil_string_cast.
  • test with object
Jul 4 2023, 09:05
avivey updated the diff for D25325: Fix int fields for now.
  • flip condition
Jul 4 2023, 08:58
valerio.bozzolan added a comment to D25326: Add explicit tests for phutil_string_cast.
In D25326#9471, @avivey wrote:

Maybe we can pass also an object that has a __toString() method

do you have an example on how to construct one?

Jul 4 2023, 07:46
valerio.bozzolan added a comment to D25325: Fix int fields for now.

Yeah no problem, I just wanted to understand and share each other points.

Jul 4 2023, 07:23
avivey added a comment to D25326: Add explicit tests for phutil_string_cast.

Maybe we can pass also an object that has a __toString() method

Jul 4 2023, 07:22
avivey added a comment to D25325: Fix int fields for now.

Explicit is better then implicit.

Jul 4 2023, 07:21
valerio.bozzolan added a comment to D25326: Add explicit tests for phutil_string_cast.

Maybe we can pass also an object that has a __toString() method

Jul 4 2023, 07:20
valerio.bozzolan added a comment to D25325: Fix int fields for now.

Using $value === '' would be only place in the code that does that

Jul 4 2023, 07:17
avivey added a comment to D25325: Fix int fields for now.

Yeah but I don't see that readability bonus point here since we have a "not non-empty" condition.

Jul 4 2023, 07:06
valerio.bozzolan added a comment to D25325: Fix int fields for now.

Yeah but I don't see that readability bonus point here since we have a "not non-empty" condition.

Jul 4 2023, 07:01
avivey added a comment to D25325: Fix int fields for now.

I mean, so the goal of the cast is to be able to operate strictly with strings, so finally we can if($v === '') without any pitfall

Jul 4 2023, 06:14

Jul 3 2023

valerio.bozzolan added a comment to D25325: Fix int fields for now.

I mean, so the goal of the cast is to be able to operate strictly with strings, so finally we can if($v === '') without any pitfall

Jul 3 2023, 22:13
valerio.bozzolan added a comment to D25325: Fix int fields for now.

Note that after phutil_string_cast(), NULL is never returned, but just a string

Jul 3 2023, 22:11
valerio.bozzolan awarded D25326: Add explicit tests for phutil_string_cast a Love token.
Jul 3 2023, 21:32
speck accepted D25326: Add explicit tests for phutil_string_cast.

Awesome, tyty

Jul 3 2023, 21:03
Cigaryno updated the task description for T15187: Fix Arcanist in PHP 8.1+ (testing the Phorge repo).
Jul 3 2023, 19:46 · PHP 8 support, Arcanist, User-valerio.bozzolan
avivey added inline comments to D25326: Add explicit tests for phutil_string_cast.
Jul 3 2023, 19:11
avivey updated the diff for D25326: Add explicit tests for phutil_string_cast.
  • More test cases
Jul 3 2023, 19:10
speck added a comment to D25326: Add explicit tests for phutil_string_cast.

Nice. Could we add some additional tests for Boolean true/false, the number zero, populated and empty array?

Jul 3 2023, 18:37
avivey added a project to T15290: vscode extension for working on phorge codebase: Phorge Development Tools.
Jul 3 2023, 18:30 · Phorge Development Tools, Phactory: Community Projects
avivey claimed T15519: arc-unit on phorge should ignore any currently installed extensions.
Jul 3 2023, 18:17 · Extension Development, Phorge Development Tools
avivey added a project to T15209: The Celerity unit tests are not automatically run when touching whatever CSS or JS file: Phorge Development Tools.
Jul 3 2023, 18:16 · Bug Reports, Phorge Development Tools, Arcanist, User-valerio.bozzolan
avivey added a project to T15500: Improve Remarkup unit tests to always trigger the .txt checks: Phorge Development Tools.
Jul 3 2023, 18:16 · Phorge Development Tools, Remarkup
avivey created Phorge Development Tools.
Jul 3 2023, 18:16
avivey added a project to T15096: Discuss Arcanist as a barrier to adoption of Phorge and how to address the underlying issues.: Discussion Needed.
Jul 3 2023, 18:13 · Discussion Needed, Arcanist
avivey requested review of D25326: Add explicit tests for phutil_string_cast.
Jul 3 2023, 18:11
avivey added a comment to D25325: Fix int fields for now.

(looks like most other custom fields already override this method with something useful).

Jul 3 2023, 18:07
avivey requested review of D25325: Fix int fields for now.
Jul 3 2023, 18:06
avivey added a revision to T15516: Regression in PhabricatorStandardCustomField.php:304 - field can be an integer: D25325: Fix int fields for now.
Jul 3 2023, 18:06 · Bug Reports
speck added a comment to T15516: Regression in PhabricatorStandardCustomField.php:304 - field can be an integer.

I agree that non-string/null should be handled differently. I guess I don’t see the difference between null + strlen being used vs. the proposed nonempty_string/stringlike, and that making that change is explicitly acknowledging that casting is expected/intentional when it isn’t and instead the different types should be handled appropriately (your suggested long-term solution).

Jul 3 2023, 17:56 · Bug Reports
avivey added a comment to T15516: Regression in PhabricatorStandardCustomField.php:304 - field can be an integer.

I'm pretty sure that any place where strlen is getting something that isn't a string (including int), that's actually a bug. In Phabricator code, strlen was only supposed to be used when expecting a string or null; All the places we now find aren't strings, are places where we were wrong about the type of the object.
Epriestley says something like that at https://secure.phabricator.com/T13588#257329 .

Jul 3 2023, 17:42 · Bug Reports
Sten requested review of D25324: Fix PHP 8.1 PhabricatorEditorURIEngine::newForViewer() trim(NULL) error.
Jul 3 2023, 16:43
Sten added a revision to T15518: PHP 8.1 trim(NULL) error in PhabricatorEditorURIEngine::newForViewer(): D25324: Fix PHP 8.1 PhabricatorEditorURIEngine::newForViewer() trim(NULL) error.
Jul 3 2023, 16:43 · PHP 8 support
Sten claimed T15518: PHP 8.1 trim(NULL) error in PhabricatorEditorURIEngine::newForViewer().
Jul 3 2023, 16:39 · PHP 8 support
Sten created T15518: PHP 8.1 trim(NULL) error in PhabricatorEditorURIEngine::newForViewer().
Jul 3 2023, 16:39 · PHP 8 support
speck added a comment to D25319: Make src/infrastructure/javelin/markup.php phabricator_form PHP 8.1 compliant.

phabricator_form() is called in 24 places, and 23 of those specify the method.

So the choices are:

  1. Update the one calling place which isn't specifying the method, but leave phabricator_form() as a fragile function.
  2. Update phabricator_form() to defensively handle the lack of a method attribute, as we have done here.
  3. Update the phabricator_form function signature to make the method a required parameter.
Jul 3 2023, 15:53
Sten updated the summary of D25323: Fix PHP 8.1 issue in DifferentialChangeset getOldStatePathVector().
Jul 3 2023, 15:38
Sten requested review of D25323: Fix PHP 8.1 issue in DifferentialChangeset getOldStatePathVector().
Jul 3 2023, 15:36
Sten added a revision to T15517: Differential PHP 8.1 failure - DifferentialChangeset getOldStatePathVector() strlen: D25323: Fix PHP 8.1 issue in DifferentialChangeset getOldStatePathVector().
Jul 3 2023, 15:36 · PHP 8 support
Sten claimed T15517: Differential PHP 8.1 failure - DifferentialChangeset getOldStatePathVector() strlen.
Jul 3 2023, 15:31 · PHP 8 support
Sten created T15517: Differential PHP 8.1 failure - DifferentialChangeset getOldStatePathVector() strlen.
Jul 3 2023, 15:31 · PHP 8 support
valerio.bozzolan added a comment to T15516: Regression in PhabricatorStandardCustomField.php:304 - field can be an integer.

Honestly I do not love the idea of if(strlen($something)) to answer the question "Is this empty when casted to string?".

Jul 3 2023, 15:29 · Bug Reports
aklapper updated the task description for T15515: Blur profile image when account disabled.
Jul 3 2023, 14:18 · Feature Requests, Affects-Wikimedia
avivey added a comment to T15515: Blur profile image when account disabled.

I've added both links to the preamble for easy discovery.

Jul 3 2023, 14:08 · Feature Requests, Affects-Wikimedia
speck added a comment to T15516: Regression in PhabricatorStandardCustomField.php:304 - field can be an integer.

Wouldn’t this be better as a null + strlen check? It was originally a strlen I assume.

Jul 3 2023, 14:05 · Bug Reports
aklapper added a comment to T15515: Blur profile image when account disabled.

Good content but unfortunately undiscoverable if not linked from a form preamble

Jul 3 2023, 13:22 · Feature Requests, Affects-Wikimedia
valerio.bozzolan updated the task description for T15516: Regression in PhabricatorStandardCustomField.php:304 - field can be an integer.
Jul 3 2023, 12:25 · Bug Reports
avivey added a comment to T15515: Blur profile image when account disabled.
Jul 3 2023, 12:24 · Feature Requests, Affects-Wikimedia
aklapper updated the diff for D25322: Blur profile image when user account disabled.

Remove already implemented text parts

Jul 3 2023, 12:18
aklapper retitled D25322: Blur profile image when user account disabled from Do not display user profile description and blur profile image when account disabled
Jul 3 2023, 12:18
aklapper renamed T15515: Blur profile image when account disabled from Do not display user profile description and blur profile image when account disabled to Blur profile image when account disabled.
Jul 3 2023, 12:16 · Feature Requests, Affects-Wikimedia
aklapper added a comment to T15515: Blur profile image when account disabled.
  1. This is a feature request, it should be defined using Feature Request pattern, not Bug Report pattern.
Jul 3 2023, 12:15 · Feature Requests, Affects-Wikimedia
avivey shifted T15074: Hide profile pictures and descriptions of disabled users from the Restricted Space space to the S1 Public space.
Jul 3 2023, 11:28 · Spam mitigation, Security
avivey added a comment to T15515: Blur profile image when account disabled.
  1. This is a feature request, it should be defined using Feature Request pattern, not Bug Report pattern.
  2. We already implemented this in D25035
Jul 3 2023, 11:26 · Feature Requests, Affects-Wikimedia
aklapper added a comment to D25322: Blur profile image when user account disabled.

I'd say "This account has been disabled" is way clearer than... nothing? :P

Jul 3 2023, 11:22
valerio.bozzolan added a comment to D25322: Blur profile image when user account disabled.

Thanks :) What do you think about just returning a null User description? I propose that since the User profile view already says "Disabled".

Jul 3 2023, 11:08
avivey removed a project from T15516: Regression in PhabricatorStandardCustomField.php:304 - field can be an integer: Phorge.
Jul 3 2023, 11:04 · Bug Reports
avivey claimed T15516: Regression in PhabricatorStandardCustomField.php:304 - field can be an integer.

I don't think I intended to land this change.

Jul 3 2023, 09:55 · Bug Reports
valerio.bozzolan updated the task description for T15516: Regression in PhabricatorStandardCustomField.php:304 - field can be an integer.
Jul 3 2023, 09:54 · Bug Reports
valerio.bozzolan updated the task description for T15516: Regression in PhabricatorStandardCustomField.php:304 - field can be an integer.
Jul 3 2023, 09:45 · Bug Reports
valerio.bozzolan raised a concern with rPd725ffaa7728: Fix "Register with Approval flow" for php 8.
Jul 3 2023, 09:43
valerio.bozzolan triaged T15516: Regression in PhabricatorStandardCustomField.php:304 - field can be an integer as Unbreak Now! priority.
Jul 3 2023, 09:42 · Bug Reports
valerio.bozzolan awarded T15514: PHP 8.1 "preg_split()(null)" exception trying to register user account without setting Real Name a Yellow Medal token.
Jul 3 2023, 09:22 · PHP 8 support
aklapper closed T15514: PHP 8.1 "preg_split()(null)" exception trying to register user account without setting Real Name, a subtask of T15064: Make Phorge compatible with PHP 8.1/8.2/8.3/8.4, as Resolved.
Jul 3 2023, 09:03 · PHP 8 support
aklapper closed T15514: PHP 8.1 "preg_split()(null)" exception trying to register user account without setting Real Name as Resolved.

Looks like a mid-air collision, heh :)

Jul 3 2023, 09:03 · PHP 8 support
aklapper abandoned D25321: Fix PHP 8.1 "preg_split()(null)" exception registering account without Real Name.

Looks like a mid-air collision, heh :)

Jul 3 2023, 09:03
aklapper requested review of D25322: Blur profile image when user account disabled.
Jul 3 2023, 09:00
aklapper added a revision to T15515: Blur profile image when account disabled: D25322: Blur profile image when user account disabled.
Jul 3 2023, 09:00 · Feature Requests, Affects-Wikimedia
aklapper created T15515: Blur profile image when account disabled.
Jul 3 2023, 08:57 · Feature Requests, Affects-Wikimedia
avivey raised the priority of T15209: The Celerity unit tests are not automatically run when touching whatever CSS or JS file from Normal to High.
Jul 3 2023, 08:43 · Bug Reports, Phorge Development Tools, Arcanist, User-valerio.bozzolan
valerio.bozzolan updated the task description for T15209: The Celerity unit tests are not automatically run when touching whatever CSS or JS file.
Jul 3 2023, 08:26 · Bug Reports, Phorge Development Tools, Arcanist, User-valerio.bozzolan
valerio.bozzolan added a comment to D25320: Locate File: allow to search './path/to/something.txt'.

update celerity

Jul 3 2023, 08:26
valerio.bozzolan renamed T15209: The Celerity unit tests are not automatically run when touching whatever CSS or JS file from The Celerity unit tests are not automatically run when touching a CSS file to The Celerity unit tests are not automatically run when touching whatever CSS or JS file.
Jul 3 2023, 08:25 · Bug Reports, Phorge Development Tools, Arcanist, User-valerio.bozzolan
valerio.bozzolan updated the diff for D25320: Locate File: allow to search './path/to/something.txt'.

update celerity

Jul 3 2023, 08:20
avivey accepted D25320: Locate File: allow to search './path/to/something.txt'.
Jul 3 2023, 08:04
valerio.bozzolan added inline comments to D25320: Locate File: allow to search './path/to/something.txt'.
Jul 3 2023, 08:00