#46220 [NoF->Csd]: Writing something to a static var causes a crash instead of on error

From: Date: Sat, 18 Oct 2008 17:54:55 +0000
Subject: #46220 [NoF->Csd]: Writing something to a static var causes a crash instead of on error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-129819@lists.php.net to get a copy of this message
 ID:               46220
 Updated by:       felipe@php.net
 Reported By:      typo3 at maltejansen dot de
-Status:           No Feedback
+Status:           Closed
 Bug Type:         Reproducible crash
 Operating System: Windows XP SP2
 PHP Version:      5.3.0alpha2


Previous Comments:
------------------------------------------------------------------------

[2008-10-10 01:00:01] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2008-10-04 21:45:09] typo3 at maltejansen dot de

Hi,
a friend just send me his XAMPP with PHP5.3alpha2-dev (Build Aug 5 2008
17:46:53). It's running pretty well.
If I replace his version with the one from yesterday, it's crashing
again.

------------------------------------------------------------------------

[2008-10-03 21:38:51] typo3 at maltejansen dot de

Hi,
I have just tested the latest SnapShot and there is no other result.
But i have added a simple FileLogger to the class 
F3::Testing::Model::TestRunner (constructor) :

$log->log('$FLOW3->initializeFLOW3()', 1, NULL, 'Testing', __CLASS__);
---> $FLOW3->initializeFLOW3(); <---
$log->log('$componentManager', 1, NULL, 'Testing', __CLASS__);
self::$componentManager =
$FLOW3->getComponentManager();		self::$componentManager->unregisterComponent('F3::FLOW3::Session::SessionInterface');		self::$componentManager->registerComponent('F3::FLOW3::Session::SessionInterface',
'F3::FLOW3::Session::Transient');

And it's not the static part, but the line above. Although it's
crashing, the FileLogger still write logs to the file after
"$FLOW3->initializeFLOW3();"
(The FLOW-Framework is initializied twice. Once for the framework
itself and once for the testing framework.) After talking to the one of
the chef-programmers, it's seems to be only on windows plattforms. They
are using Linux.

By the way, the Logging of PHP says:
[some time] [notice] Parent: child process exited with status 0 --
Restarting.
...

------------------------------------------------------------------------

[2008-10-03 10:16:44] typo3 at maltejansen dot de

I just added some echo-output in each line of the construtor of
F3::Testing::Model:TestRunner. An now I got no crash but Fatal Error. I
have never seen such an message before and looks not like one from the
FLOW3-Framework...


( ! ) Fatal error: Call to a member function getComponentManager() on a
non-object in
D:\workspace-flow3\htdocs\development\Packages\Testing\Classes\Model\F3_Testing_Model_TestRunner.php
on line 0
Call Stack
#	Time	Memory	Function	Location
1	0.0007	337536	{main}( )	..\index.php:0
2	0.0251	590568	F3::FLOW3->run( )	..\index.php:30
3	37.2597	31130128	F3::FLOW3::MVC::Web::RequestHandler->handleRequest(
)	..\F3_FLOW3.php:443
4	37.3568	31149368	F3::FLOW3::MVC::Dispatcher->dispatch(
)	..\F3_FLOW3_MVC_Web_RequestHandler.php:85
5	37.3571	31149368	F3::FLOW3::MVC::Dispatcher->getPreparedController(
)	..\F3_FLOW3_MVC_Dispatcher.php:123
6	37.3576	31149728	F3::FLOW3::Component::Factory->getComponent(
)	..\F3_FLOW3_MVC_Dispatcher.php:141
7	37.3576	31149728	F3::FLOW3::Component::ObjectBuilder->createComponentObject(
)	..\F3_FLOW3_Component_Factory.php:121
8	37.3656	31161256	F3::FLOW3::Component::ObjectBuilder->injectSetterProperties(
)	..\F3_FLOW3_Component_ObjectBuilder.php:110
9	37.3656	31161256	F3::FLOW3::Component::Factory->getComponent(
)	..\F3_FLOW3_Component_ObjectBuilder.php:271
10	37.3657	31161256	F3::FLOW3::Component::ObjectBuilder->createComponentObject(
)	..\F3_FLOW3_Component_Factory.php:115
11	37.3669	31161408	ReflectionClass->newInstanceArgs(
)	..\F3_FLOW3_Component_ObjectBuilder.php:103
12	37.3670	31161480	F3::Testing::AbstractTestRunner->__construct(
)	..\F3_Testing_AbstractTestRunner.php:0
13	37.3670	31161480	F3::FLOW3::Component::Factory->getComponent(
)	..\F3_Testing_AbstractTestRunner.php:87
14	37.3671	31161624	F3::FLOW3::Component::ObjectBuilder->createComponentObject(
)	..\F3_FLOW3_Component_Factory.php:121
15	38.4300	31354576	ReflectionClass->newInstanceArgs(
)	..\F3_FLOW3_Component_ObjectBuilder.php:103
16	38.4300	31354576	F3::Testing::Model::TestRunner->__construct(
)	..\F3_Testing_Model_TestRunner.php:0

( ! ) Fatal error: Exception thrown without a stack frame in Unknown on
line 0
Call Stack
#	Time	Memory	Function	Location
1	0.0007	337536	{main}( )	..\index.php:0
2	0.0251	590568	F3::FLOW3->run( )	..\index.php:30
3	37.2597	31130128	F3::FLOW3::MVC::Web::RequestHandler->handleRequest(
)	..\F3_FLOW3.php:443
4	37.3568	31149368	F3::FLOW3::MVC::Dispatcher->dispatch(
)	..\F3_FLOW3_MVC_Web_RequestHandler.php:85
5	37.3571	31149368	F3::FLOW3::MVC::Dispatcher->getPreparedController(
)	..\F3_FLOW3_MVC_Dispatcher.php:123
6	37.3576	31149728	F3::FLOW3::Component::Factory->getComponent(
)	..\F3_FLOW3_MVC_Dispatcher.php:141
7	37.3576	31149728	F3::FLOW3::Component::ObjectBuilder->createComponentObject(
)	..\F3_FLOW3_Component_Factory.php:121
8	37.3656	31161256	F3::FLOW3::Component::ObjectBuilder->injectSetterProperties(
)	..\F3_FLOW3_Component_ObjectBuilder.php:110
9	37.3656	31161256	F3::FLOW3::Component::Factory->getComponent(
)	..\F3_FLOW3_Component_ObjectBuilder.php:271
10	37.3657	31161256	F3::FLOW3::Component::ObjectBuilder->createComponentObject(
)	..\F3_FLOW3_Component_Factory.php:115
11	37.3669	31161408	ReflectionClass->newInstanceArgs(
)	..\F3_FLOW3_Component_ObjectBuilder.php:103
12	37.3670	31161480	F3::Testing::AbstractTestRunner->__construct(
)	..\F3_Testing_AbstractTestRunner.php:0
13	37.3670	31161480	F3::FLOW3::Component::Factory->getComponent(
)	..\F3_Testing_AbstractTestRunner.php:87
14	37.3671	31161624	F3::FLOW3::Component::ObjectBuilder->createComponentObject(
)	..\F3_FLOW3_Component_Factory.php:121
15	38.4300	31354576	ReflectionClass->newInstanceArgs(
)	..\F3_FLOW3_Component_ObjectBuilder.php:103
16	38.4300	31354576	F3::Testing::Model::TestRunner->__construct(
)	..\F3_Testing_Model_TestRunner.php:0

---

Next I will test the latest SnapShot...

------------------------------------------------------------------------

[2008-10-02 18:05:25] felipe@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.3-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.3-win32-installer-latest.msi



------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/46220

-- 
Edit this bug report at http://bugs.php.net/?id=46220&edit=1



Thread (7 messages)

« previous php.bugs (#129819) next »