DevHeads.net

Postings by Peter Kokot

bugs.php.net - PHP version selection

Hello,

This was brought by the pull request to include PHP 7.4 branch and to
remove the old one:
<a href="https://github.com/php/web-bugs/pull/74" title="https://github.com/php/web-bugs/pull/74">https://github.com/php/web-bugs/pull/74</a>

Couple of questions about PHP versions selection when reporting a bug:
<a href="https://bugs.php.net/report.php" title="https://bugs.php.net/report.php">https://bugs.php.net/report.php</a>

Q1: Currently, there are listed also the so called "snaps" which were
once used via snaps.php.net. Today this is not working anymore.
However, there are Windows snapshots.

Dependency injection container for bugs.php.net

Hello,

following previous discussions about the template engine, OOP,
modernizing bugs.php.net application this one is about adding a
minimalistic dependency injection container.

Pull request is in preparation [1]

Short intro:
What are dependencies and what is dependency injection is briefly
described in the attached docs file in the pull request and in
numerous articles and blog posts around the community.

I really can't imagine a PHP application written in OOP without a
dependency injection container these days anymore.

bugs.php.net template layer

Hello,

Current template system in bugs.php.net code is integrated in front
controllers (index.php...) and some separate template files. It
contains several helper functions with globals usage and mixes HTML
with PHP code logic.

Stale branches for web/pecl repository

Hello, there are 3 so called stale branches that got stuck:
<a href="https://github.com/php/web-pecl/branches" title="https://github.com/php/web-pecl/branches">https://github.com/php/web-pecl/branches</a>

The "maint":
<a href="https://github.com/php/web-pecl/commits/maint" title="https://github.com/php/web-pecl/commits/maint">https://github.com/php/web-pecl/commits/maint</a>
and "old_auth":
<a href="https://github.com/php/web-pecl/tree/old_auth" title="https://github.com/php/web-pecl/tree/old_auth">https://github.com/php/web-pecl/tree/old_auth</a>
which are both already fully integrated in the web/pecl master branch.

Should we remove these two from the Git repository?

I'm about to recheck the "next" branch soon:
<a href="https://github.com/php/web-pecl/tree/next" title="https://github.com/php/web-pecl/tree/next">https://github.com/php/web-pecl/tree/next</a>
It seems that a complete site redesign was being done and then moving
to pickleweb but as I imagine the entire project is too complicated
for creating a separate bra

pecl.php.net download proxy script

Hello,

a question about the pecl.php.net site that might be stopping server upgrades.

The extension download URL endpoint is:
<a href="https://pecl.php.net/get/operator" title="https://pecl.php.net/get/operator">https://pecl.php.net/get/operator</a>

This is a PHP proxy download script that do some checks and outputs
non standard header for Apache webserver and mod_xsendfile to offer a
direct file download as it was a static file. That way there is very
little performance overhead and option that request goes through a PHP
script.

However, this mod_xsendfile isn't maintained anymore.

PHP version upgrade on pecl.php.net

Hello,

worth noting that the web application
<a href="https://git.php.net/?p=web/pecl.git" title="https://git.php.net/?p=web/pecl.git">https://git.php.net/?p=web/pecl.git</a> has been adjusted to work on PHP
7.2 and even 7.3 already.

There are some warnings and notices thrown by some outdated PEAR code
here and there (part of the PEAR core package that comes with a system
PHP installation on the server) but nothing that would stop app from
running.

Regenerate REST XML files on pecl.php.net

Hello,
there is an issue with some XML files for REST api on pecl.php.net that
haven't been updated in a period of a week and include few releases.

The script needed to be run on the pecl.php.net server to regenerate the
XML files is located at:
/path/to/pecl/root/bin/generate-rest.php
This script regenerates the XML files from the database into the location
set by the environment variable PEAR_REST_DIR or in the config here:
<a href="https://github.com/php/web-pecl/blob/master/config/app_prod.php#L47" title="https://github.com/php/web-pecl/blob/master/config/app_prod.php#L47">https://github.com/php/web-pecl/blob/master/config/app_prod.php#L47</a>

If someone is so kind to help us out here.

Thank you.