[jira] [Updated] (NETBEANS-3661) Console output sequence from PHP is in wrong order and changes randomly on errormessages

2021-06-30 Thread Nikolai Neff (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikolai Neff updated NETBEANS-3661:
---
Affects Version/s: 12.4

> Console output sequence from PHP is in wrong order and changes randomly on 
> errormessages
> 
>
> Key: NETBEANS-3661
> URL: https://issues.apache.org/jira/browse/NETBEANS-3661
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.2, 12.4
> Environment: Product Version: Apache NetBeans IDE 11.2
> Java: 13.0.1; Java HotSpot(TM) 64-Bit Server VM 13.0.1+9
> Runtime: Java(TM) SE Runtime Environment 13.0.1+9
> System: Windows 10 version 10.0 running on amd64; Cp1252; de_DE (nb)
> User directory: C:\Users\Niko\AppData\Roaming\NetBeans\11.2
> Cache directory: C:\Users\Niko\AppData\Local\NetBeans\Cache\11.2
> Windos 10 Proffesional v 1909 Build 18363.535
> PHP 7.4.1 (cli) (built: Dec 17 2019 19:24:02) ( ZTS Visual C++ 2017 x64 )
> with Zend OPcache v7.4.1,
> with Xdebug v2.9.0
>Reporter: Nikolai Neff
>Priority: Minor
>  Labels: console, output, php, windows
> Attachments: ConsoleOutputErrorNBProjectFiles.zip, 
> netbeanssettings.zip, resultScreenshots.zip
>
>
> The output from PHP scripts in the built-in console is not consistent with 
> the output from running the same script without netbeans using just PHP 
> directly. There seems to be some kind of output buffering which changes on 
> each script run.
>  As far as I can tell, only PHP Error-messages are affected.
>  
> sample code:
> {code:java}
>  print ("1\n");
> throw new Exception('help');
> print ("2\n");
> {code}
> expected output:
> {code:java}
> "C:\php\php.exe" 
> "C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php"
> 1
> PHP Fatal error:  Uncaught Exception: help in 
> C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php:3
> Stack trace:
> #0 {main}
>   thrown in 
> C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php on line 
> 3
> Done.
> {code}
> actual output:
> (varies, see screenshots)
> {code:java}
> "C:\php\php.exe" 
> "C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php"
> 1
> PHP Fatal error:  Uncaught Exception: help in 
> C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php:3
> Stack trace:
> Done.
> #0 {main}
>   thrown in 
> C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php on line 
> 3
> {code}
> OR
> {code:java}
> "C:\php\php.exe" 
> "C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php"
> PHP Fatal error:  Uncaught Exception: help in 
> C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php:3
> Stack trace:
> 1
> #0 {main}
> Done.
>   thrown in 
> C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php on line 
> 3
> {code}
> OR
> {code:java}
> "C:\php\php.exe" 
> "C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php"
> PHP Fatal error:  Uncaught Exception: help in 
> C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php:3
> 1
> Stack trace:
> Done.
> #0 {main}
>   thrown in 
> C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php on line 
> 3
> {code}
> and so on. Interestingly the coloring is respected and not broken. Also, when 
> I use xdebug to step through the code, the order is always correct. PHP 
> Output buffering settings and/or using flush() has apparently no effect.
> Running the script directly in the windows console works as expected every 
> time:
> {code:java}
> C:\Users\Niko>php -f 
> c:\users\niko\Documents\NetBeansProjects\ConsoleOutputError\index.php
> 1
> PHP Fatal error:  Uncaught Exception: help in 
> C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php:3
> Stack trace:
> #0 {main}
>   thrown in 
> C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php on line 
> 3
> {code}
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Updated] (NETBEANS-3661) Console output sequence from PHP is in wrong order and changes randomly on errormessages

2020-01-03 Thread Nikolai Neff (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikolai Neff updated NETBEANS-3661:
---
Description: 
The output from PHP scripts in the built-in console is not consistent with the 
output from running the same script without netbeans using just PHP directly. 
There seems to be some kind of output buffering which changes on each script 
run.
 As far as I can tell, only PHP Error-messages are affected.

 

sample code:
{code:java}
php -f 
c:\users\niko\Documents\NetBeansProjects\ConsoleOutputError\index.php
1
PHP Fatal error:  Uncaught Exception: help in 
C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php:3
Stack trace:
#0 {main}
  thrown in 
C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php on line 3
{code}
 

 

 

  was:
The output from PHP scripts in the built-in console is not consistent with the 
output from running the same script without netbeans using just PHP directly. 
There seems to be some kind of output buffering which changes on each script 
run.
As far as I can tell, only PHP Error-messages are affected.

 

sample code:
{code:java}
php -f 
c:\users\niko\Documents\NetBeansProjects\ConsoleOutputError\index.php
1
PHP Fatal error:  Uncaught Exception: help in 
C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php:3
Stack trace:
#0 {main}
  thrown in 
C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php on line 3
{code}
 

 

 


> Console output sequence from PHP is in wrong order and changes randomly on 
> errormessages
> 
>
> Key: NETBEANS-3661
> URL: https://issues.apache.org/jira/browse/NETBEANS-3661
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.2
> Environment: Product Version: Apache NetBeans IDE 11.2
> Java: 13.0.1; Java HotSpot(TM) 64-Bit Server VM 13.0.1+9
> Runtime: Java(TM) SE Runtime Environment 13.0.1+9
> System: Windows 10 version 10.0 running on amd64; Cp1252; de_DE (nb)
> User directory: C:\Users\Niko\AppData\Roaming\NetBeans\11.2
> Cache directory: C:\Users\Niko\AppData\Local\NetBeans\Cache\11.2
> Windos 10 Proffesional v 1909 Build 18363.535
> PHP 7.4.1 (cli) (built: Dec 17 2019 19:24:02) ( ZTS Visual C++ 2017 x64 )
> with Zend OPcache v7.4.1,
> with Xdebug v2.9.0
>Reporter: Nikolai Neff
>Priority: Minor
>  Labels: console, output, php, windows
> Attachments: ConsoleOutputErrorNBProjectFiles.zip, 
> netbeanssettings.zip, resultScreenshots.zip
>
>
> The output from PHP scripts in the built-in console is not consistent with 
> the output from running the same script without netbeans using just PHP 
> directly. There seems to be some kind of output buffering which changes on 
> each script run.
>  As far as I can tell, only PHP Error-messages are affected.
>  
> sample code:
> {code:java}
>  print ("1\n");
> throw new Exception('help');
> print ("2\n");
> {code}
> expected output:
> {code:java}
> "C:\php\php.exe" 
> "C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php"
> 1
> PHP Fatal error:  Uncaught Exception: help in 
> C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php:3
> Stack trace:
> #0 {main}
>   thrown in 
> C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php on line 
> 3
> Done.
> {code}
> actual output:
> (varies, see screenshots)
> {code:java}
> "C:\php\php.exe" 
> "C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php"
> 1
> PHP Fatal error:  Uncaught Exception: help in 
> C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php:3
> Stack trace:
> Done.
> #0 {main}
>   thrown in 
> C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php on line 
> 3
> {code}
> OR
> {code:java}
> "C:\php\php.exe" 
> "C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php"
> PHP Fatal error:  Uncaught Exception: help in 
> C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php:3
> Stack trace:
> 1
> #0 {main}
> Done.
>   thrown in 
> C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php on line 
> 3
> {code}
> OR
> {code:java}
> "C:\php\php.exe" 
> "C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php"
> PHP Fatal error:  Uncaught Exception: help in 
> C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php:3
> 1
> Stack trace:
> Done.
> #0 {main}
>   thrown in 
> C:\Users\Niko\Documents\NetBeansProjects\ConsoleOutputError\index.php on line 
> 3
> {code}
> and so on. Interestingly the coloring is respected and not broken. Also, when 
> I use xdebug to step through the code, the order is always correct. PHP 
> Output buffering settings and/or using flush() has apparently no effect.
> Running the script