FAQ

# PHP>php-internals>November 2015

## 74 discussions - 481 posts

• 71

#### PHP 7.0.0 final RTM delay

Hi, based on the discussion of the last few days and the reached consent, the final date of the 7.0.0 RTM is shifted. RC8 is planned to appear on November 26th instead of GA. 7.0.0 RTM will follow ...
 Anatol BelskiNov 24, 2015 at 4:38 pmDec 6, 2015 at 9:32 am
• 41

#### Native Annotation Syntax

Hello. I'd been reading some old RFCs recently, and I found two RFCs on the subject of annotations, both by Guilherme Blanco. The first one, which proposed a native syntax for annotations, is marked ...
 Pedro CordeiroNov 24, 2015 at 4:30 pmNov 26, 2015 at 5:19 pm
• 38

#### INDRECT in arrays causes count() to become unpredictable

All, It appears that in our efforts to optimize PHP 7 we've introduced an inconsistency into array handling. This is demonstrated by this script: https://3v4l.org/hVcAB $a = 1; unset($a) ...
 Anthony FerraraNov 21, 2015 at 10:47 pmNov 23, 2015 at 6:43 pm
• 29

#### HashDos protection

Hi internals! This mail turned out to be rather long, so I'll start with a TL;DR: To fix the HashDos vulnerability for *all* cases (rather than just GET/POST parsing), I propose to introduce ...
 Nikita PopovNov 26, 2015 at 5:24 pmDec 1, 2015 at 4:41 pm
• 26

The following is currently valid PHP 7 code <?php function a(\int $i) {} Is it intentional that the \ in front of the "int" is allowed? IMHO, this confusing notation must not be allowed.  Sebastian BergmannNov 24, 2015 at 3:11 pmNov 26, 2015 at 1:06 am • 26 #### [PHP-DEV] Immutable modifier Hi, There has been a lot of interest recently (eg psr-7) in immutable data. I'm considering putting an RFC together to add language support for immutables: immutable class Foo { public$bar; public ...
 Chris RileyNov 16, 2015 at 9:15 amNov 17, 2015 at 9:56 pm
• 25

#### Small regression in PHP-LDAP

Hello, It has been brought to my attention that some PHP code using LDAP connect was broken by the update to PHP 5.6.11. This is because the use on ldap_connect(host:port) is not allowed anymore. You ...
 Côme ChillietNov 3, 2015 at 5:04 amNov 16, 2015 at 2:23 am
• 24

#### PHP 7 RTM date

Hi, After doing the last evaluations in the RMs circle before going for 7.0.0 RTM preparations, we came to the conclusion that the current state does not look reasonable to be packaged as the final ...
 Anatol BelskiNov 8, 2015 at 7:15 pmNov 11, 2015 at 1:16 am
• 18

#### 7.0.0 release

Hi, it is sad to see that the discussion went in the direction it went, but I'm glad to have missed that being away all day and at the end of it realizing my mail server messed up. Please lets get ...
 Anatol BelskiNov 23, 2015 at 9:10 pmNov 25, 2015 at 12:37 pm
• 18

#### Null bytes in anonymous class names

Hello, I discovered today that anonymous class names contain a null byte right after "class@anonymous". I don't think class names should contain non-printable characters. How about removing that null ...
 Niklas KellerNov 5, 2015 at 2:21 pmNov 12, 2015 at 1:46 pm
• 15

#### PHP 7 Segmentation fault

Hello Everyone, I have a large application that segfaults on spl autoload function. I have not had the time yet to create a small script that can be used to reproduce the error, but it looks to be ...
 Frank M. KromannNov 11, 2015 at 12:22 amNov 11, 2015 at 11:12 pm
• 13

#### Support for writing and executing compiled opcode

Hello all, I've been thinking about PHP optimization and distribution, and I would like to hear some opinions on introducing a new feature for a future PHP 7 version. Here's the concept: allow PHP ...
 Stephen CoakleyNov 13, 2015 at 9:36 pmNov 17, 2015 at 12:06 am
• 12

#### Windows (Visual Studio) compiler stuff

Hi Dmitry, Anatol, Pierre (etc.), and all, I'm back now, I think, after a much longer (unintentional) break than I expected. Be coming very soon with what I was doing in the summer (param parsing ...
 Matt WilmasNov 15, 2015 at 10:30 pmDec 7, 2015 at 4:54 pm
• 12

#### Resource typehint and return type

Hi guys, I just poked up an RFC and a patch for resource typehints and return types. I'd really like to hear your thoughts about it! RFC: https://wiki.php.net/rfc/resource_typehint Patch ...
 Ben Scholzen 'DASPRiD'Nov 11, 2015 at 1:45 amNov 23, 2015 at 10:10 pm
• 11

#### Friend class/function

​Hi php internals, I recently discovered ​the "friendship concept" in c++ and i really love the concept. And i wonder if the php internals would be interested to implements it in the next 7.x major ...
 GeorgesNov 1, 2015 at 4:04 pmNov 6, 2015 at 4:40 am
• 10

#### Proof of Concept : 3.5x and more Performance Boost for php7 using 4 cores

Hi everybody, I made a simple test to know if it was possible to speed-up php performance by using parallel programming. I modified 2 functions within ./ext/standard/array.c file of PHP-7.0.0RC7 to ...
 Pascal KISSIANNov 27, 2015 at 10:02 amNov 30, 2015 at 9:31 am
• 10

#### PHP7 Coalesce operator

Hey all. Been a while since I popped into this list. You may remember me from such emails as “Why god can’t we have namespaces”, or “so we’re still not fixing strpos, eh?” I had a question-suggestion ...
 ShaddaNov 22, 2015 at 9:15 amNov 23, 2015 at 10:43 pm
• 7

#### Safe Temporary Cleanup on Exception (Variable Liveness)

Hi, Please take a look into https://gist.github.com/dstogov/43eaa3f3b68583877322 This is variation on Bob's idea about variable liveness. The patch is incomplete. Liveness construction is still ...
 Dmitry StogovNov 10, 2015 at 9:53 amNov 11, 2015 at 1:19 pm
• 7

Hello, internals! I have a question about changed behavior in 7.0 for matching signature of variadic method. Here is an example of code: class Foo { public static function test($bar = null) { ...  Alexander LisachenkoNov 1, 2015 at 9:49 pmNov 3, 2015 at 9:27 am • 5 #### Pear.php.net SSL cert Anyone else getting an invalid cert on https://pear.php.net ?  Chris RileyNov 30, 2015 at 1:49 pmDec 1, 2015 at 7:25 pm • 5 #### static:: and PHP 7 (from bug #70997) Hi internals, I'm looking for some feedback on a change with regard to static::, which has been present throughout the 7 branch. Have a look-see at https://bugs.php.net/bug.php?id=70997 <?php class A ...  Peter CowburnNov 30, 2015 at 12:17 pmNov 30, 2015 at 3:07 pm • 5 #### PHP 7 : Cannot use stream wrappers during MINIT Hi, First, I don't know if this must be considered as a bug, because a lot of features are not available during MINIT but it seems quite inconsistent. I precise I'm using the 7.x master branch (I ...  François LaupretreNov 6, 2015 at 12:08 amNov 21, 2015 at 1:11 am • 5 #### taint as a first-class feature for php 7.1 Hello again php-internals. I was the original poster of the (most recent) thread on making taint a first-class feature for php. Shortly after the start of the original thread, Laruence ported the ...  Christopher OwenNov 17, 2015 at 7:34 amNov 19, 2015 at 3:59 pm • 5 #### Is there documentation somewhere on public CMS/Framework/Libs that are PHP7 compat? Hi guys, I am very exceited about the imminent release of PHP 7 and that also corresponds to when my non-profit will get a new server sponsored by a local ISP, so we want to switch to 7 at this ...  Pascal ChevrelNov 14, 2015 at 3:14 pmNov 16, 2015 at 9:48 pm • 5 #### PHP7 / foreach / references / ugly code / discrepancy to PHP 5.6 Hi, I'm having a cause of slightly ugly code that runs differently from PHP 5.6 to PHP 7 and I don't think this difference is documented, nor expected. As I'm not sure whether this is an intended ...  Philip HofstetterNov 10, 2015 at 4:49 pmNov 11, 2015 at 1:33 pm • 5 #### [RFC][DISCUSSION] Trailing commas in all list syntax Hey internals! The RFC to allow trailing commas to function calls & declarations has been withdrawn in favor of the a RFC that broadens the scope to all list syntax ...  Sammy Kaye PowersNov 3, 2015 at 7:22 pmNov 7, 2015 at 11:45 pm • 4 #### [RFC] HTTP/2 Server Push support in ext/curl Hey folks, I'd like to introduce a new RFC for 7.1 that will add support for HTTP/2 Server Push to ext/curl. This is exposing new features from libcurl to user land, which means they must have the ...  Davey ShafikNov 18, 2015 at 10:31 pmDec 2, 2015 at 11:36 pm • 4 #### Bug #70805 (Segmentation faults whilst running Drupal 8 test suite) Hi, I think, I found the root problem of https://bugs.php.net/bug.php?id=70805 unset($a) or unser($GLOBAL["a"]) triggered GC and destructors calls that tried to release the same global variable$a ...
 Dmitry StogovNov 3, 2015 at 7:58 pmNov 4, 2015 at 10:27 am
• 3

#### Internal methods proposal

Hi, I think this proposal has been made before maybe here or discussed elsewhere. Still, I'd like to give my input on the idea. The basic concept is when a method has the internal access modifier, it ...
 Dominic GrostateNov 24, 2015 at 12:14 pmNov 24, 2015 at 1:27 pm
• 3

#### Pear fetch script problem on PHP 7.0

Hi, Trying to build PHP 7 RC7 on Darwin I get: [activating module php7' in /usr/local/zend/apache2/conf/httpd.conf] Installing PHP CLI binary: /usr/local/zend/bin/ Installing PHP CLI man page ...
 Lior KaplanNov 22, 2015 at 11:23 amNov 23, 2015 at 9:58 am
• 3

#### Benchmark Results for PHP Master 2015-11-19

Results for project PHP master, build date 2015-11-19 05:26:43+02:00 commit: 84610b1f3904069f6fc0754c807a3f5cd58a4010 revision date: 2015-11-19 00:47:08+03:00 environment: Haswell-EP cpu: Intel(R) ...
 Lp_benchmark_robotNov 19, 2015 at 5:11 pmNov 21, 2015 at 4:54 pm
• 3

#### DateTime / Timezone funny behaviour, between different version

Hello together, i just noticed that the date + timezone switching changed a lot last time? tl;dr https://3v4l.org/pSplY When taking a old datetime: \$date = \DateTime::createFromFormat('d.m.Y H:i:s', ...
 Martin KeckeisNov 17, 2015 at 10:40 amNov 17, 2015 at 11:35 am
• 3

#### Benchmark Results for PHP Master 2015-11-12

Results for project PHP master, build date 2015-11-12 05:26:37+02:00 commit: a4e16cd8238e5b09b6afe7a84a62c0bfa58cccd0 revision date: 2015-11-12 01:43:38+01:00 environment: Haswell-EP cpu: Intel(R) ...
 Lp_benchmark_robotNov 12, 2015 at 4:54 pmNov 16, 2015 at 8:19 am
• 2

#### Changes in 7.0 RMs team

Hi, I'm writing to inform the community that from now on Kalle is considered retired. He was indeed already inactive for personal reasons for quite some time. Nothing seems to have changed on that ...
 AbNov 30, 2015 at 9:42 amDec 5, 2015 at 10:17 pm
• 2

#### Travis-ci tests fail with valgrind on PHP 7

Hi Bob, I'm currently testing a new PHP extension on travis-ci in valgrind/leak_check mode. In PHP 5 environments, it is OK but, on PHP 7, every test fails with this message : valgrind: Bad option ...
 François LaupretreNov 10, 2015 at 3:11 amNov 10, 2015 at 4:33 am
• 2

#### [RFC][DISCUSSION] Allow default value in list() syntax

Hi internals! I'd like to open a discussion on the RFC to allow set default values for list() assignment: https://wiki.php.net/rfc/list_default_value. What is your idea? Thanks. -- Reeze Xia ...
 ReezeNov 9, 2015 at 1:35 pmNov 10, 2015 at 3:15 am
• 2

#### PhpStorm Open Source Licenses 2015/16

Hi folks, It's that time of year again. If you are using our PhpStorm license, you've probably been prompted about it expiring in December. JetBrains have kindly offered their open source license to ...
 Peter CowburnNov 8, 2015 at 8:02 pmNov 8, 2015 at 11:47 pm
• 2

#### Re: [PHP-DEV] [VOTE] Void Return Type RFC

These are all excellent thoughts and the same reason why I don't like the use of void` in this RFC. It doesn't accurately describe what is happening. Plus introducing even a context-sensitive ...
 Stephen CoakleyNov 6, 2015 at 4:23 amNov 8, 2015 at 10:47 pm
• 1

#### Re: [PHP-CVS] tag php-src: create tag php-7.0.0RC8

Why were 569763cb1ac67f56e7743062ca8b3b7c650c1254 and 00865ae22f2c5fdee9e500ce79d442467e0a0899 not merged into PHP-7.0.0 and thus not part of 7.0.0RC8? The consensus on the mailinglist seemed to me ...
 Sebastian BergmannNov 25, 2015 at 9:18 amNov 25, 2015 at 10:44 am
• 1

#### PHP 7.0.0RC7 is available

Hi, The seventh release candidate for 7.0.0 was just released and can be downloaded from: https://downloads.php.net/~ab/ The Windows binaries are available at http://windows.php.net/qa/ This release ...
 AbNov 12, 2015 at 1:11 pmNov 12, 2015 at 2:11 pm
• 1

#### Compatibility library for extensions

Hi, Some of you may be interested by a project I just released at https://github.com/flaupretre/pecl-compat. This is a compatibility library. The objective is to minimize the pain of making a PHP ...
 François LaupretreNov 10, 2015 at 2:53 pmNov 11, 2015 at 5:41 am
• 1

#### Package / namespace visibility

Hi, As one of the Drupal core developers I need to say: we would *love* to have some sort of cross class visibility. Visibility within a namespace looks like a very nice solution to this. May I ...
 Karoly NegyesiNov 11, 2015 at 12:24 amNov 11, 2015 at 12:40 am
• 1

#### [RESULT] Void Return Type RFC

Hi everyone, Voting on the Void Return Type RFC commenced on 2015-10-29 and has ended today, 2015-11-09. By 37 votes in favour to 7 votes against, or 84.1% of votes, the RFC has been accepted for PHP ...
 Andrea FauldsNov 9, 2015 at 12:24 amNov 9, 2015 at 5:17 pm
• 0

#### VCS Account Request: vkudrik

Maintaining and translating documentation, core development
 Vladislav KudrikNov 30, 2015 at 4:05 pmNov 30, 2015 at 4:05 pm
• 0

#### Benchmark Results for PHP Master 2015-11-27

Results for project PHP master, build date 2015-11-27 14:24:32+02:00 commit: 95283a050473ee433af0fe235852d990425b4e87 revision date: 2015-11-26 16:57:11+01:00 environment: Haswell-EP cpu: Intel(R) ...
 Lp_benchmark_robotNov 27, 2015 at 2:16 pmNov 27, 2015 at 2:16 pm
• 0

#### PHP 5.6.16 is available

Hello! The PHP development team announces the immediate availability of PHP 5.6.16. Several bugs have been fixed. All PHP 5.6 users are encouraged to upgrade to this version. For source downloads of ...
 Ferenc KovacsNov 27, 2015 at 12:03 amNov 27, 2015 at 12:03 am
• 0

#### PHP 7.0.0RC8 is available

Hi, The eighth release candidate for 7.0.0 was just released and can be downloaded from: https://downloads.php.net/~ab/ The Windows binaries are available at http://windows.php.net/qa/ This release ...
 AbNov 26, 2015 at 2:26 pmNov 26, 2015 at 2:26 pm
• 0

#### Benchmark Results for PHP Master 2015-11-26

Results for project PHP master, build date 2015-11-26 09:26:27+02:00 commit: f9dd83cbe37bcbae173fb3e08b62cfc1c2718085 revision date: 2015-11-26 12:00:37+08:00 environment: Haswell-EP cpu: Intel(R) ...
 Lp_benchmark_robotNov 26, 2015 at 2:18 pmNov 26, 2015 at 2:18 pm
• 0

#### Re: libtool builds CLI/CGI php from PIC object files

hi, Yeah. This approach should work. Using non-PIC object files instead of PIC for linking executable programs make it about 2% faster on Linux x86_64. I have no idea about disadvantages. May be ...
 Dmitry StogovNov 25, 2015 at 2:37 pmNov 25, 2015 at 2:37 pm
• 0

#### Benchmark Results for PHP Master 2015-11-25

Results for project PHP master, build date 2015-11-25 05:26:40+02:00 commit: 283e9ea21bb980513d86c5273bebc01b5eb2b52c revision date: 2015-11-25 03:40:55+01:00 environment: Haswell-EP cpu: Intel(R) ...
 Lp_benchmark_robotNov 25, 2015 at 12:15 pmNov 25, 2015 at 12:15 pm