Req #55440 [NEW]: Internal state of the execution engine
| From: | nicolas dot grekas+php at gmail dot com | Date: | Wed, 17 Aug 2011 13:30:57 +0000 |
| Subject: | Req #55440 [NEW]: Internal state of the execution engine | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-162631@lists.php.net to get a copy of this message | ||
From:
Operating system:
PHP version: 5.3.6
Package: *General Issues
Bug Type: Feature/Change Request
Bug description:Internal state of the execution engine
Description:
------------
While developing in PHP, I've learned that the execution engine is
sometimes set in special states that alter its capabilities.
As far as I know, their is no way for us developers to write code that test
for one of these particular state and branch code appropriately.
By "special state", I mean :
- execute/compile stage, where for eg autoloading doesn't work
(http://bugs.php.net/42098),
- outside/inside output buffering handler, where for eg print_r($v, true)
doesn't work (http://bugs.php.net/55428),
- before/after "shutdown time", where for eg uncatched exceptions generate
the cryptic "Fatal error: Exception thrown without a stack frame in Unknown
on line 0" and set_exception_handler() is disabled.
Adding a centralized way to check for these states is maybe a good idea ?
For example, get_engine_state( void ) would return a bit field, each bit
for each possible state?
--
Edit bug report at https://bugs.php.net/bug.php?id=55440&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55440&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55440&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55440&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=55440&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55440&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=55440&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=55440&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=55440&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=55440&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=55440&r=support
Expected behavior: https://bugs.php.net/fix.php?id=55440&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=55440&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=55440&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=55440&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55440&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=55440&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=55440&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=55440&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=55440&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=55440&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=55440&r=mysqlcfg