Page MenuHomePhorge
Feed All Stories

Apr 5 2025

valerio.bozzolan added a revision to T15047: Officially raise minimum required PHP version to 7.2: D25948: Remove setup check for PHP 7.0.
Apr 5 2025, 17:31 · Phorge
valerio.bozzolan edited the content of Next Up.
Apr 5 2025, 17:30
aklapper requested review of D25950: Remove PHP APC support and APC references.
Apr 5 2025, 17:04
Cigaryno edited the content of Dependencies.
Apr 5 2025, 16:51
Cigaryno edited the content of Welcome to the Phorge Wiki.
Apr 5 2025, 16:45 · Phorge
aklapper updated the diff for D25947: Remove setup check for safe_mode removed in PHP 5.4.

git rebase master

Apr 5 2025, 14:05
aklapper closed D25948: Remove setup check for PHP 7.0.
Apr 5 2025, 14:02
aklapper committed rPadc199eb4abb: Remove setup check for PHP 7.0.
Apr 5 2025, 14:02
mainframe98 updated the diff for D25946: Remove support for PHP mysql extension.

Update documentation and simplify extension check

Apr 5 2025, 14:01
aklapper requested review of D25949: Complete session digest migration from SHA1 to SHA256.
Apr 5 2025, 14:00
aklapper added a revision to T16025: Tech Debt: Complete session digest migration from SHA1 to SHA256: D25949: Complete session digest migration from SHA1 to SHA256.
Apr 5 2025, 14:00
valerio.bozzolan accepted D25948: Remove setup check for PHP 7.0.

sgtm

Apr 5 2025, 13:57
aklapper requested review of D25948: Remove setup check for PHP 7.0.
Apr 5 2025, 13:44
aklapper requested review of D25947: Remove setup check for safe_mode removed in PHP 5.4.
Apr 5 2025, 13:39
aklapper requested changes to D25946: Remove support for PHP mysql extension.

Nearly perfect (thanks!), only thing missing is to also update mysql (or mysqli) in src/docs/user/installation_guide.diviner.

Apr 5 2025, 13:12
mainframe98 removed a task from D25946: Remove support for PHP mysql extension: T15989: `arc` commands: Constant E_STRICT is deprecated (with PHP 8.4).
Apr 5 2025, 12:07
mainframe98 removed a revision from T15989: `arc` commands: Constant E_STRICT is deprecated (with PHP 8.4): D25946: Remove support for PHP mysql extension.
Apr 5 2025, 12:07 · Deprecation Notice, PHP 8 support, Bug Reports
mainframe98 updated the summary of D25946: Remove support for PHP mysql extension.
Apr 5 2025, 12:06
mainframe98 updated the diff for D25946: Remove support for PHP mysql extension.

Ran bin/celerity map

Apr 5 2025, 12:04
mainframe98 requested review of D25946: Remove support for PHP mysql extension.
Apr 5 2025, 12:03
mainframe98 added a revision to T15989: `arc` commands: Constant E_STRICT is deprecated (with PHP 8.4): D25946: Remove support for PHP mysql extension.
Apr 5 2025, 12:03 · Deprecation Notice, PHP 8 support, Bug Reports
mainframe98 added a revision to T16024: Tech Debt: Remove PHP mysql extension related code: D25946: Remove support for PHP mysql extension.
Apr 5 2025, 12:03
aklapper created T16025: Tech Debt: Complete session digest migration from SHA1 to SHA256.
Apr 5 2025, 09:50
aklapper added a comment to D25887: Remove use of deprecated E_STRICT PHP constant.

Phorge supports either the old mysql extension or mysqli - and mysql was deprecated in PHP 5.5, and removed in PHP 7.0.

Apr 5 2025, 09:42
aklapper created T16024: Tech Debt: Remove PHP mysql extension related code.
Apr 5 2025, 09:41
aklapper updated the summary of D25886: Remove use of deprecated E_STRICT PHP constant.
Apr 5 2025, 09:24
aklapper updated the summary of D25887: Remove use of deprecated E_STRICT PHP constant.
Apr 5 2025, 09:24
aklapper added a comment to D25887: Remove use of deprecated E_STRICT PHP constant.

I cannot remember how I attempted (and failed) to check a few weeks ago... Thank you both for jumping in and correcting!

Apr 5 2025, 09:21

Apr 4 2025

20after4 added a comment to T15948: Allow public API access when equivalent public web access exists.
Apr 4 2025, 10:01 · Policy, Conduit, Phorge
valerio.bozzolan edited the content of Change Log.
Apr 4 2025, 07:17

Apr 3 2025

keithzg added a comment to D25887: Remove use of deprecated E_STRICT PHP constant.

Yeah I was also pretty sure Phab used mysqli? I have had to have it on all my installations, and the Phorge documentation still cites it. https://we.phorge.it/book/contrib/article/database/

Apr 3 2025, 17:36
mainframe98 added a comment to D25887: Remove use of deprecated E_STRICT PHP constant.

Phorge neither uses PHP's mysqli extension nor calls PHP's htmlentities() function.

Are you sure about that? Phorge supports either the old mysql extension or mysqli - and mysql was deprecated in PHP 5.5, and removed in PHP 7.0. Notably, Phorge checks for the existence of mysqli in PhabricatorDatabaseRef, PhabricatorExtensionSetupCheck and PhabricatorPHPConfigSetupCheck.

Apr 3 2025, 17:07
Cigaryno updated the task description for T15948: Allow public API access when equivalent public web access exists.
Apr 3 2025, 11:16 · Policy, Conduit, Phorge
valerio.bozzolan resigned from rP67b7181f5226: Facts: Always render YYYY-MM-DD dates with eight digits in chart tooltips.
Apr 3 2025, 07:43

Apr 2 2025

aklapper updated subscribers of T15724: PHP 8.3: Usage of ldap_connect with two arguments is deprecated.

Patch based on my understanding of taavi's comments in T15963 (as I fail to set up an LDAP server locally):

diff --git a/src/applications/auth/adapter/PhutilLDAPAuthAdapter.php b/src/applications/auth/adapter/PhutilLDAPAuthAdapter.php
index 14047c1761..e25659a4aa 100644
--- a/src/applications/auth/adapter/PhutilLDAPAuthAdapter.php
+++ b/src/applications/auth/adapter/PhutilLDAPAuthAdapter.php
@@ -305,7 +305,16 @@ final class PhutilLDAPAuthAdapter extends PhutilAuthAdapter {
           'port' => $this->port,
         ));
Apr 2 2025, 21:43 · Deprecation Notice, PHP 8 support
aklapper added a comment to rP67b7181f5226: Facts: Always render YYYY-MM-DD dates with eight digits in chart tooltips.

@valerio.bozzolan Could you remove the concern so this isn't listed on https://we.phorge.it/diffusion/commit/ for me? Thanks :)

Apr 2 2025, 20:19
aklapper edited the content of Welcome to the Phorge Wiki.
Apr 2 2025, 20:17 · Phorge
Cigaryno added a comment to T15948: Allow public API access when equivalent public web access exists.

There must be a function that allows Conduit methods to be used by logged-out users. It's just that there are hardly any methods using that function.

Apr 2 2025, 18:16 · Policy, Conduit, Phorge
Cigaryno updated the task description for T15948: Allow public API access when equivalent public web access exists.
Apr 2 2025, 18:11 · Policy, Conduit, Phorge
Cigaryno added a comment to T15948: Allow public API access when equivalent public web access exists.

There must be a function that allows Conduit methods to be used by logged-out users. It's just that there are hardly any methods using that function.

Apr 2 2025, 18:11 · Policy, Conduit, Phorge
aklapper closed T15640: Errors when a commit belongs to a numeric git branch: Exception: "Call to phutil_nonempty_string() expected null or a string, got: int" in PhabricatorRepository.php as Resolved by committing rP17033a1c70d8: Fix exception handling a numeric git branch ("Call to phutil_nonempty_string()….
Apr 2 2025, 13:09 · Bug Reports, Affects-Wikimedia
aklapper closed D25945: Fix exception handling a numeric git branch ("Call to phutil_nonempty_string() expected null or a string, got: int" in PhabricatorRepository).
Apr 2 2025, 13:09
aklapper committed rP17033a1c70d8: Fix exception handling a numeric git branch ("Call to phutil_nonempty_string()….
Apr 2 2025, 13:09
aklapper updated the diff for D25945: Fix exception handling a numeric git branch ("Call to phutil_nonempty_string() expected null or a string, got: int" in PhabricatorRepository).

add PHPDoc

Apr 2 2025, 13:07
valerio.bozzolan accepted D25945: Fix exception handling a numeric git branch ("Call to phutil_nonempty_string() expected null or a string, got: int" in PhabricatorRepository).

Check if the comments are interesting - thanks for this Phorgi patchi that seems lovely

Apr 2 2025, 12:03
aklapper requested review of D25945: Fix exception handling a numeric git branch ("Call to phutil_nonempty_string() expected null or a string, got: int" in PhabricatorRepository).
Apr 2 2025, 11:55
aklapper added a revision to T15640: Errors when a commit belongs to a numeric git branch: Exception: "Call to phutil_nonempty_string() expected null or a string, got: int" in PhabricatorRepository.php: D25945: Fix exception handling a numeric git branch ("Call to phutil_nonempty_string() expected null or a string, got: int" in PhabricatorRepository).
Apr 2 2025, 11:55 · Bug Reports, Affects-Wikimedia
valerio.bozzolan renamed T15640: Errors when a commit belongs to a numeric git branch: Exception: "Call to phutil_nonempty_string() expected null or a string, got: int" in PhabricatorRepository.php from Exception: "Call to phutil_nonempty_string() expected null or a string, got: int" in PhabricatorRepository.php to Errors when a commit belongs to a numeric git branch: Exception: "Call to phutil_nonempty_string() expected null or a string, got: int" in PhabricatorRepository.php.
Apr 2 2025, 11:23 · Bug Reports, Affects-Wikimedia
valerio.bozzolan added a comment to T15640: Errors when a commit belongs to a numeric git branch: Exception: "Call to phutil_nonempty_string() expected null or a string, got: int" in PhabricatorRepository.php.

I'm still a bit shocked by how PHP is so weird. So:

Apr 2 2025, 09:55 · Bug Reports, Affects-Wikimedia
valerio.bozzolan added a comment to T15640: Errors when a commit belongs to a numeric git branch: Exception: "Call to phutil_nonempty_string() expected null or a string, got: int" in PhabricatorRepository.php.

Wow. 10 years of PHP, first time that I notice this

Apr 2 2025, 09:45 · Bug Reports, Affects-Wikimedia
aklapper added a comment to T15640: Errors when a commit belongs to a numeric git branch: Exception: "Call to phutil_nonempty_string() expected null or a string, got: int" in PhabricatorRepository.php.

https://www.php.net/manual/en/language.types.array.php#language.types.array.syntax :

Strings containing valid decimal ints, unless the number is preceded by a + sign, will be cast to the int type.

Apr 2 2025, 00:00 · Bug Reports, Affects-Wikimedia

Apr 1 2025

aklapper closed D25943: PHPDoc: Replace non-existing return type phid with string.
Apr 1 2025, 23:15
aklapper committed rARC93930454c58a: PHPDoc: Replace non-existing return type phid with string.
Apr 1 2025, 23:15
aklapper closed D25944: PHPDoc: Replace non-existing return type phid with string.
Apr 1 2025, 23:15
aklapper committed rPdef09cf442de: PHPDoc: Replace non-existing return type phid with string.
Apr 1 2025, 23:15
valerio.bozzolan accepted D25943: PHPDoc: Replace non-existing return type phid with string.

yuuuuuuup

Apr 1 2025, 18:23
valerio.bozzolan accepted D25944: PHPDoc: Replace non-existing return type phid with string.

yuuuup

Apr 1 2025, 18:23
aklapper added a project to T15640: Errors when a commit belongs to a numeric git branch: Exception: "Call to phutil_nonempty_string() expected null or a string, got: int" in PhabricatorRepository.php: Bug Reports.

The culprit is $map[$branch] = $branch_head; in https://we.phorge.it/source/phorge/browse/master/src/applications/diffusion/data/DiffusionGitBranch.php$105.
Before $branch was a string, afterwards it is an integer.

Apr 1 2025, 17:47 · Bug Reports, Affects-Wikimedia
aklapper updated the summary of D25902: Remove unused code in ManiphestReportController::renderBurn().
Apr 1 2025, 09:52
valerio.bozzolan accepted D25942: Herald Transcripts: Use μs instead of us for microseconds.

Patch approved in 123123121231323μ asd

Apr 1 2025, 09:33
aklapper requested review of D25944: PHPDoc: Replace non-existing return type phid with string.
Apr 1 2025, 09:02
aklapper requested review of D25943: PHPDoc: Replace non-existing return type phid with string.
Apr 1 2025, 09:01

Mar 31 2025

aklapper requested review of D25942: Herald Transcripts: Use μs instead of us for microseconds.
Mar 31 2025, 21:17
aklapper requested review of D25941: PhabricatorCustomField: Fix a typo in PHPDoc.
Mar 31 2025, 21:01
aklapper closed D25940: PHPDoc: Replace non-existing param type phid with string.
Mar 31 2025, 20:52
aklapper committed rPb302851369f0: PHPDoc: Replace non-existing param type phid with string.
Mar 31 2025, 20:52
valerio.bozzolan accepted D25940: PHPDoc: Replace non-existing param type phid with string.

Yup and thanks that somebody already put "PHID" is the inline description.

Mar 31 2025, 20:44
aklapper requested review of D25940: PHPDoc: Replace non-existing param type phid with string.
Mar 31 2025, 20:23
aklapper closed D25938: PHPDoc: Replace non-existing param type const with string.
Mar 31 2025, 20:01
aklapper committed rPabb0d6815a98: PHPDoc: Replace non-existing param type const with string.
Mar 31 2025, 20:01
aklapper closed D25939: PHPDoc: Replace non-existing param type const with string.
Mar 31 2025, 20:00
aklapper committed rARCb6210fae9136: PHPDoc: Replace non-existing param type const with string.
Mar 31 2025, 20:00
valerio.bozzolan accepted D25938: PHPDoc: Replace non-existing param type const with string.

yesyes

Mar 31 2025, 19:36
valerio.bozzolan accepted D25939: PHPDoc: Replace non-existing param type const with string.

yesyes

Mar 31 2025, 19:36
aklapper requested review of D25939: PHPDoc: Replace non-existing param type const with string.
Mar 31 2025, 19:31
aklapper requested review of D25938: PHPDoc: Replace non-existing param type const with string.
Mar 31 2025, 19:29
Cigaryno closed D25936: Mark Phorge.it Home as non-launchable.
Mar 31 2025, 14:21 · User-Cigaryno, phorge.it install
Cigaryno committed R10:4fac8b0aa67c: Mark Phorge.it Home as non-launchable.
Mar 31 2025, 14:21
Cigaryno closed T16018: Update TOTP suggestions to open-source applications as Resolved by committing rPf6639cc09c3d: Update TOTP suggestions to open-source applications.
Mar 31 2025, 13:54 · User-Cigaryno, Auth
Cigaryno closed D25934: Update TOTP suggestions to open-source applications.
Mar 31 2025, 13:54 · User-Cigaryno, Auth
Cigaryno committed rPf6639cc09c3d: Update TOTP suggestions to open-source applications.
Mar 31 2025, 13:54
aklapper accepted D25934: Update TOTP suggestions to open-source applications.

Looks good to me, thanks!

Mar 31 2025, 13:01 · User-Cigaryno, Auth
avivey accepted D25936: Mark Phorge.it Home as non-launchable.

Looks good, yeah.

Mar 31 2025, 06:51 · User-Cigaryno, phorge.it install

Mar 30 2025

aklapper added a comment to D25935: Require MFA to uninstall apps if enabled.

Why would a cancel URI be needed?

Mar 30 2025, 22:04 · Security, User-Cigaryno
Cigaryno added a reviewer for D25936: Mark Phorge.it Home as non-launchable: avivey.

@avivey does this look good to you?

Mar 30 2025, 21:53 · User-Cigaryno, phorge.it install
aklapper requested review of D25937: PHPDoc: Make some parameter types match type in signatures.
Mar 30 2025, 21:06
aklapper added a comment to D25926: Make Diffusion repository management accessible to logged-out users.

But so far this is nothing meant to be hidden from users who can't edit the repo.

Mar 30 2025, 20:52 · User-Cigaryno, Diffusion
Cigaryno added a comment to D25935: Require MFA to uninstall apps if enabled.

After these steps I get Unhandled Exception ("Exception"): This transaction group requires MFA to apply, but the Editor was not configured with a Cancel URI. This workflow can not perform an MFA check.

Why would a cancel URI be needed? Do you know a Cancel URI for an app with something that prompts for MFA (ie. exposing Passphrases, empowering users, signing comments with MFA, managing your VCS password and SSH keys)

Mar 30 2025, 20:51 · Security, User-Cigaryno
aklapper added a comment to D25935: Require MFA to uninstall apps if enabled.

Which "an application" exactly?

Any application were canUninstall is not set to false (thus not a required application).

That's what I tested (as the Files application can be uninstalled). Which exact application(s) did you test?
I'm surprised that you did not run into the same problem as I did described in my last comment...maybe it's related to not being an admin?

Mar 30 2025, 20:46 · Security, User-Cigaryno
Cigaryno added a comment to D25926: Make Diffusion repository management accessible to logged-out users.

Socially I remain unconvinced about use cases. Implications are for example exposing hidden (or internal?) URIs under URIs or "Working Copy Status" stuff under Basics to the public. I just so far do not think it's a good idea.

Mar 30 2025, 20:44 · User-Cigaryno, Diffusion
aklapper added a comment to D25926: Make Diffusion repository management accessible to logged-out users.

Tested this locally; technically it looks correct to me.

Mar 30 2025, 20:42 · User-Cigaryno, Diffusion
aklapper updated the test plan for D25926: Make Diffusion repository management accessible to logged-out users.
Mar 30 2025, 20:41 · User-Cigaryno, Diffusion
Cigaryno added a comment to D25935: Require MFA to uninstall apps if enabled.

Which "an application" exactly?

Any application were canUninstall is not set to false (thus not a required application).

As which type of user?

A user with the Can Configure Application capability (by default admins).

Mar 30 2025, 20:31 · Security, User-Cigaryno
Cigaryno updated the diff for D25934: Update TOTP suggestions to open-source applications.

Fix typos reported by @aklapper.

Mar 30 2025, 20:27 · User-Cigaryno, Auth
aklapper renamed T15036: Phorge upstream mail should not use @secure.phorge.dev addresses from Phorge upstream mail should not use @upstream.phorge.dev addresses to Phorge upstream mail should not use @secure.phorge.dev addresses.
Mar 30 2025, 20:23 · phorge.it install
Cigaryno added a comment to D25936: Mark Phorge.it Home as non-launchable.

@Cigaryno: Thanks! Could you elaborate why the change in .arcconfig is needed?

Mar 30 2025, 20:15 · User-Cigaryno, phorge.it install
aklapper requested changes to D25935: Require MFA to uninstall apps if enabled.

Clear Test Plans with URIs are welcome - the less others need to think "how/where to do that" the easier gets testing.

Mar 30 2025, 20:13 · Security, User-Cigaryno
aklapper updated the test plan for D25936: Mark Phorge.it Home as non-launchable.
Mar 30 2025, 19:54 · User-Cigaryno, phorge.it install
aklapper added a comment to D25936: Mark Phorge.it Home as non-launchable.

@Cigaryno: Thanks! Could you elaborate why the change in .arcconfig is needed?

Mar 30 2025, 19:53 · User-Cigaryno, phorge.it install
avivey added a comment to T15036: Phorge upstream mail should not use @secure.phorge.dev addresses.

So, this turns out to be a lot harder than I thought.

Mar 30 2025, 19:15 · phorge.it install