Bug #72451 [Com]: Wordpress/ stream_get_wrappers causes crash

From: Date: Tue, 31 Jan 2017 15:47:18 +0000
Subject: Bug #72451 [Com]: Wordpress/ stream_get_wrappers causes crash
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-207072@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72451&edit=1 ID: 72451 Comment by: boldini at softcodex dot ch Reported by: oldbucsfan at hotmail dot com Summary: Wordpress/ stream_get_wrappers causes crash Status: Assigned Type: Bug Package: Apache2 related Operating System: Windows Server 2012 R2 PHP Version: 7.0.7 Assigned To: ab Block user comment: N Private report: N New Comment: hi, I tried to run also ab and abs with -n 1000 -c 10 with the code $wrappers = stream_get_wrappers(); print_r($wrappers); $wrappers_re = '(' . join('|', $wrappers) . ')'; print($wrappers_re); but no crash happens! I can say my cash happen every 2/3 weeks Only have 1 site with phpmyadmin that use https, so few connections per day.. All other are normal http Previous Comments: ------------------------------------------------------------------------ [2017-01-12 19:33:39] oldbucsfan at hotmail dot com Thanks ab. All Apache/PHP/etc are all using OpenSSL/1.0.2j. So they aren't different versions. I have made sure that the right dlls are being loaded, so it's not a missing or conflicting dll. I'll get another backtrace for you. Apache 2.4.25 (x64 vc14 ApacheLounge binaries) PHP 7.1.0 (x64 thread safe from php.net) boldini, are you also running with https enabled in Apache? It sounds like your error is much less frequent, but I was getting hit over https a few times a second, so a server with less load may not have this error appear but sparingly. It may be something where you need to have all 4 of these to get the error. 1. Apache enabled and fairly often hit over https 2. PHP 7 3. Windows Server 2012? - may or may not be a requirement 4. Some sort of code that triggers the error like the stream_get_wrappers(), although this may be more of a symptom than the source of the problem. ------------------------------------------------------------------------ [2017-01-12 17:21:19] ab@php.net @oldbucsfan as now there seems to be more or less stable reproduce case, could you please post the backtrace for it? The last backtrace in your comment from 2016-07-08 13:47 UTC did show only issue with Apache SSL module, no PHP. An accompanying thing could be to check, whether OpenSSL in your PHP and Apache are from the same series. Also, as per @boldini, is that still with or without Opcache? Thanks. ------------------------------------------------------------------------ [2017-01-12 16:57:38] oldbucsfan at hotmail dot com Related To: Bug #73706 ------------------------------------------------------------------------ [2017-01-12 16:56:15] oldbucsfan at hotmail dot com Related To: Bug #72359 ------------------------------------------------------------------------ [2017-01-12 16:52:52] oldbucsfan at hotmail dot com Also tests show that this only happens with https connections. Tesing with abs.exe to the same test code causes the error. Testing with ab.exe to the same test code does not cause the error. Apache has no problems loading an html page over https. Same test code running PHP 5 does not cause the error. So, this seems to be some sort of conflict between Apache https extensions and PHP 7 (doesn't happen with PHP 5). ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=72451 -- Edit this bug report at https://bugs.php.net/bug.php?id=72451&edit=1

« previous php.bugs (#207072) next »