|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-04-14 20:57 UTC] padraic@php.net
Description: ------------ The STDERR constant appears to be undefined showing: Notice: Use of undefined constant STDERR - assumed 'STDERR' in /path/to/something.php on line 23 Example: https://travis-ci.org/padraic/humbug/jobs/58504971 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 18:00:01 2025 UTC |
The issue is most likely not related to PHP 7, but rather to the fact that Xdebug is not available for the PHP 7 Travis tests, and only in this case line 23 of bootstrap.php is executed. I'm getting the same notice on versions before PHP 7 if Xdebug is not available. Can you please confirm, Pádraic. Further information: STDERR (as well as STDIN and STDOUT) is generally not defined when using Symfony's PhpProcess class, at least not on Windows (if Process::$enhanceWindowsCompatibility == true, what is the default) and on Cygwin, as the following snippet confirms: $process = new Symfony\Component\Process\PhpProcess( '<?php echo STDERR; ?>' ); $process->run(); echo $process->getOutput();