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

From: Date: Mon, 20 Jun 2016 02:25:42 +0000
Subject: Bug #72451 [Opn]: Wordpress/ stream_get_wrappers causes crash
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-201737@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 User updated by: oldbucsfan at hotmail dot com Reported by: oldbucsfan at hotmail dot com Summary: Wordpress/ stream_get_wrappers causes crash Status: Open Type: Bug -Package: ssh2 +Package: Streams related Operating System: Windows Server 2012 R2 PHP Version: 7.0.7 Block user comment: N Private report: N New Comment: I updated as the bug occurs when php_ssh2.dll is not loaded. It stopped at https, so I think this means it has something to do with php 7 and a memory leak. Actual Result: Array ( [0] => php [1] => file [2] => glob [3] => data [4] => http [5] => ftp [6] => zip [7] => compress.zlib [8] When it is working correctly: Array ( [0] => php [1] => file [2] => glob [3] => data [4] => http [5] => ftp [6] => zip [7] => compress.zlib [8] => https [9] => ftps [10] => phar ) (php|file|glob|data|http|ftp|zip|compress.zlib|https|ftps|phar) Error in Apache: AH00428: Parent: child process 5220 exited with status 3221225477 -- Restarting. Error in PHP log: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 8245937481558682050 bytes) in C:\Apache24\htdocs\wordpress\wp-includes\functions.php on line 4946 Previous Comments: ------------------------------------------------------------------------ [2016-06-20 00:37:14] oldbucsfan at hotmail dot com Description: ------------ Running on wordpress and installing php_ssh2.dll leads to a problem when calling and returning stream_get_wrappers(). It seems to stall and gives a white screen for Wordpress. I tested it out with a simple php script unassociated with Wordpress and I have seen it stall out in the middle of the script. This error does not occure when php_ss2.dll is not installed. Used the 1.0 version of php_ssh2.dll x64 thread safe. Test script: --------------- $wrappers = stream_get_wrappers(); print_r($wrappers); $wrappers_re = '(' . join('|', $wrappers) . ')'; print($wrappers_re); Expected result: ---------------- Array ( [0] => php [1] => file [2] => glob [3] => data [4] => http [5] => ftp [6] => zip [7] => compress.zlib [8] => https [9] => ftps [10] => phar [11] => ssh2.shell [12] => ssh2.exec [13] => ssh2.tunnel [14] => ssh2.scp [15] => ssh2.sftp ) (php|file|glob|data|http|ftp|zip|compress.zlib|https|ftps|phar|ssh2.shell|ssh2.exec|ssh2.tunnel|ssh2.scp|ssh2.sftp) Actual result: -------------- Array ( ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72451&edit=1

« previous php.bugs (#201737) next »