php

php[world] 2019 — 25 years of PHP

php.net - 21時間 17分
カテゴリー: php

Interview with David Laietta

planet PHP - 2019-07-17(水) 17:30:00
カテゴリー: php

502 Bad Gateway

planet PHP - 2019-07-17(水) 00:00:00

HTTP is a protocol that is implemented by servers and clients, but there is a third category: proxies.

When a system is acting as a proxy for a different server, and that server is misbehaving or doing something unexpected, the proxy can return 502 Bad Gateway to tell a client that the proxy is working fine, but there was something wrong with the ‘origin’ server instead.

A specific example of this could be a CDN in front on a web server, and the web-server is misconfigured and responding with incorrect HTTP responses.

This status should not be used if the origin server just returned a valid HTTP error itself, because these should generally just be forwarded by the proxy (mostly) unaltered.

Example HTTP/1.1 502 Bad Gateway Content-Type text/plain We made a HTTP request to an origin server, but we got a Gopher response back. References
カテゴリー: php

On "10x developers"

planet PHP - 2019-07-15(月) 01:58:00
On "10x developers"

Yesterday, a VC posted a Twitter thread about "10x engineers and how to spot them.'' It is a frankly terrible thread, and predictably, it became the latest Internet Pile On(tm), which we all know is Twitter's favorite pastime. I added my own thoughts in another thread, which I want to replicate here for posterity and then expand on a bit more now that I have a real keyboard and not just my phone.

First, here's my original thread, lightly edited for clarity, paragraphs, and links:

Continue reading this post on SteemIt.

Larry 14 July 2019 - 11:58am
カテゴリー: php

PHP 7.4.0 alpha 3 Released

php.net - 2019-07-11(木) 19:15:12
カテゴリー: php

PHP 7.4.0 alpha 3 Released

planet PHP - 2019-07-11(木) 09:00:00
PHP team is glad to announce the release of the third PHP 7.4.0 version, PHP 7.4.0 Alpha 3. This continues the PHP 7.4 release cycle, the rough outline of which is specified in the PHP Wiki. For source downloads of PHP 7.4.0 Alpha 3 please visit the download page. Please carefully test this version and report any issues found in the bug reporting system. Please DO NOT use this version in production, it is an early test version. For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive. The next release would be Beta 1, planned for July 25th. The signatures for the release can be found in the manifest or on the QA site. Thank you for helping us make PHP better.
カテゴリー: php

Lightning PHP Conference

php.net - 2019-07-10(水) 10:27:54
カテゴリー: php

501 Not Implemented

planet PHP - 2019-07-10(水) 00:00:00

A server can return 501 Not Implemented when it doesn’t support a certain feature.

The RFC specifically lists ‘not supporting a specific HTTP method on any resource’ as an example of this.

In most practical cases this is similar enough to 405 Method Not Allowed, and 405 is probably the clearer status code for most cases.

But there is a difference. Given that 5xx are server-side errors and 4xx errors are client-side errors, it could be argued that emitting a 405 means that a method should never really have been called by a client, but a 501 could mean that the method should have worked, but the server has incomplete functionality.

I sometimes use 501 during development of new API’s as a ‘stub response’ for features I intend to build, but haven’t built yet.

Example HTTP/1.1 501 Not Implemented Content-Type text/html <img src="http://geocities.example/work-in-progress.gif" /> References
カテゴリー: php

Interview with Adam Kelso

planet PHP - 2019-07-09(火) 20:30:00
カテゴリー: php

Xdebug Update: June 2019

planet PHP - 2019-07-09(火) 17:34:00
Xdebug Update: June 2019
London, UK Tuesday, July 9th 2019, 09:34 BST

This is another of the monthly update reports in which I explain what happened with Xdebug development in this past month. It will be published on the first Tuesday after the 5th of each month. Patreon supporters will get it earlier, on the first of each month. You can become a patron here to support my work on Xdebug. More supporters, means that I can dedicate more of my time to improving Xdebug.

In June, I worked on Xdebug for 20 hours, a little bit less than normal as I spend some time on holidays and conferences. I worked on the following things:

2.8.0alpha1 Release

I made the 2.8.0alpha1 release just when the month was running out.

This alpha release adds preliminary support for PHP 7.4, but also addresses some other issues. It also includes a major overhaul on how I do SKIPIF sections in the phpt tests that I used to test Xdebug.

Instead of having complicated sections such as:

<?php if (!version_compare(phpversion(), "7.0.12", '>')) echo "skip > PHP 7.0.12, < PHP 7.1 needed\n"; ?> <?php if (!version_compare(phpversion(), "7.1", '<')) echo "skip > PHP 7.0.12, < PHP 7.1 needed\n"; ?> <?php if (!extension_loaded('zend opcache')) echo "skip opcache required\n"; ?>

I now have:

check_reqs('PHP > 7.0.12,< 7.1; opcache');

This makes it a lot easier to maintain Xdebug's tests among multiple PHP versions. After all, I still support PHP versions since PHP 7.0—although I am considering dropping support for PHP 7.0 and only support PHP 7.1 and up.

This release also features the Resolving Breakpoints feature, which the folks at Jetbrains have sponsored. After their last review, I made a few modifications to run the resolver for newly set breakpoints as well. I am intending to create a separate blog post on what this new feature solves.

I also found an already existing bug with return breakpoints, where a return breakpoint would not cause a break immediately. A fix for this is also in the alpha1 release.

32-bit Support

I am considering to stop creating Windows binaries for 32-bit installations of PHP. It duplicates the amount of time that it takes to create Windows binaries, slowing down, testing on CI, and the creation of releases as it takes ~2 hours to build them all on AppVeyor.

The reasoning behind this is that very few people still use 32-bit Windows installations, and I am not sure it's still worth spending time on it. I ran a little Twitter poll about this.

Although even if I would drop 32-bit binary creations, users that still need these binaries can get them on the PECL website. PECL builds extensions for all the supported PHP versions, such as here for Xdebug 2.8.0alpha1

Podcast

I have been continuing with the PHP Internals News podcast. In this weekly podcast, I discuss in 15-30 minutes, proposed new features to the PHP language with fellow PHP internals developers. It is available on Spotify and iTunes, and through an RSS Feed. Let me know if you are a listener!

カテゴリー: php

Interview with Adam Harvey

planet PHP - 2019-07-09(火) 15:03:00
カテゴリー: php

Interview with Adam Harvey

planet PHP - 2019-07-09(火) 01:01:00
カテゴリー: php

JsonMapper 1.5 released

planet PHP - 2019-07-07(日) 21:40:00

Now that the kids are with their grandparents for a week, I finally had the time to merge pull requests and tinker on bug reports myself.

Today I released JsonMapper version 1.5.0, one and a half year after 1.4. It got support for PHP 7 scalar type declarations, and improves class map handling. Some common fatal errors are prevented by throwing an exception with a message that is easier to grasp.

I also shut down my PEAR channel, zustellzentrum.cweiske.de. JsonMapper is now only available via packagist.

カテゴリー: php

PHP 7.2.20 Released

php.net - 2019-07-04(木) 18:14:21
カテゴリー: php

PHP 7.3.7 Release Announcement

php.net - 2019-07-04(木) 17:29:00
カテゴリー: php

Interview with Adam Harvey

planet PHP - 2019-07-04(木) 14:03:00
カテゴリー: php

PHP 7.3.7 Release Announcement

planet PHP - 2019-07-04(木) 09:00:00
The PHP development team announces the immediate availability of PHP 7.3.7. This is a bug fix release.All PHP 7.3 users are encouraged to upgrade to this version.For source downloads of PHP 7.3.7 please visit our downloads page, Windows source and binaries can be found on windows.php.net/download/. The list of changes is recorded in the ChangeLog.
カテゴリー: php

ページ