|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-09-23 13:36 UTC] mz dot evgeny at gmail dot com
-Summary: fwrite doesn't write long strings to a stream
+Summary: fwrite doesn't write long strings to a php stream
-Package: Streams related
+Package: *General Issues
[2010-09-23 13:36 UTC] mz dot evgeny at gmail dot com
[2010-09-24 04:45 UTC] cataphract@php.net
[2010-10-01 03:18 UTC] cataphract@php.net
-Status: Open
+Status: Verified
[2010-10-17 10:49 UTC] bouke at webatoom dot nl
[2011-02-09 10:26 UTC] tyra3l at gmail dot com
[2011-02-09 10:30 UTC] pajoye@php.net
[2011-03-03 15:23 UTC] tyra3l at gmail dot com
[2011-03-03 19:08 UTC] pajoye@php.net
-Block user comment: N
+Block user comment: Y
[2011-03-03 19:08 UTC] pajoye@php.net
[2011-03-03 19:12 UTC] pajoye@php.net
-Status: Verified
+Status: Assigned
-Assigned To:
+Assigned To: pajoye
[2011-12-22 13:02 UTC] cataphract@php.net
[2017-10-24 07:35 UTC] kalle@php.net
-Status: Assigned
+Status: Open
-Assigned To: pajoye
+Assigned To:
[2021-11-23 11:32 UTC] cmb@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: cmb
[2021-11-23 11:32 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 02:00:01 2025 UTC |
Description: ------------ fwrite doesn't write long strings to a stream. When i try to open a php process and write a long-script to it, i get a parse error. Test script: --------------- $descriptorSpec = array( 0 => array('pipe', 'r'), 1 => array('pipe', 'w'), 2 => array('pipe', 'w') ); $process = proc_open("php.exe", $descriptorSpec, $pipes); var_dump(fwrite($pipes[0], "<?php '" . str_repeat("1", 8500) . "'; ?>")); fclose($pipes[0]); $stdout = stream_get_contents($pipes[1]); fclose($pipes[1]); proc_close($process); print_r($stdout); Expected result: ---------------- int 8513 No error. Actual result: -------------- int 8513 Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in - on line 1