From:             yaauie
Operating system: Win32
PHP version:      trunk-SVN-2011-08-30 (snap)
Package:          Output Control
Bug Type:         Bug
Bug description:errors spawn MessageBox, which blocks test automation

Description:
------------
Calls to the Win32 API MessageBox block automated testing. When the
automation 
is spawned by a timed script, that script does not have access to the UI to

close these messages.

3 places where MessageBox is called:

Zend/zend_ini_parser.y:179 - instead of printing an INI parse error to
stderr, 
*always* when PHP_WIN32 is defined. This means that the test suite does not

catch the error on Windows machines (example parse error directive `php -n
-d 
foo="a=href"`) and execution of automated tests is blocked until a user can

click through.
 - example 

main/main.c:984 - in addition to other logging, but only if 
display_startup_errors is true and the error type is either E_CORE_WARNING
or 
E_CORE_ERROR.
 - since display_startup_errors is set to true by the testing suite (and is

required for many tests to pass), I cannot disable it. Perhaps a new ini 
directive should be created instead of having this one overloaded?

sapi/cgi/cgi_main.c:1768 - only when PHP_DEBUG is defined. I don't have a
big 
problem with this, since it is debug code, but perhaps it too could be
governed 
by an ini directive.

Test script:
---------------
pass a deliberately-defective ini directive:

`php -n -d a=b=c -v`


Expected result:
----------------
--STDERR--
php: syntax error, unexpected '=' in Unknown on line 7
--STDOUT--
PHP 5.5.0-dev (cli) (built: Aug 30 2011 18:14:14)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2011 Zend Technologies


Actual result:
--------------
--BLOCKING-MESSAGEBOX--
---------------------------
PHP Error
---------------------------
syntax error, unexpected '=' in Unknown on line 7

---------------------------
OK   
---------------------------
--STDERR--(nothing)
--STDOUT--
PHP 5.5.0-dev (cli) (built: Aug 30 2011 18:14:14)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2011 Zend Technologies

-- 
Edit bug report at https://bugs.php.net/bug.php?id=55541&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=55541&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=55541&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=55541&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=55541&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=55541&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=55541&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=55541&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=55541&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=55541&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=55541&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=55541&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=55541&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=55541&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=55541&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=55541&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=55541&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=55541&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=55541&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=55541&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=55541&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=55541&r=mysqlcfg

Reply via email to