Ask a Question related to PHP Development, Design and Development.
-
sniper@php.net #1
#26121 [Opn->WFx]: Object defined before object - error
ID: 26121
Updated by: [email]sniper@php.net[/email]
Reported By: closer at netnitco dot net
-Status: Open
+Status: Wont fix
Bug Type: Zend Engine 2 problem
Operating System: Redhat Linux 9.0 / Apache 2.0.46
PHP Version: 5.0.0b2 (beta2)
New Comment:
This is expected and correct behaviour.
Previous Comments:
------------------------------------------------------------------------
[2003-11-04 14:16:22] closer at netnitco dot net
Description:
------------
With PHP 4 you could create the object variable before the actual
object was defined. This doesnt seem to be true in 5. If you move lines
2 and 3 of the code to the bottom the script oes work, but this does
break backward compatibility.
Reproduce code:
---------------
<?php
$new_obj = new new_class;
$new_obj->hello ();
class new_class
{
function hello ()
{
echo "Hello";
}
}
?>
Expected result:
----------------
Hello
Actual result:
--------------
Fatal error: Class 'new_class' not found in
/usr/local/apache2/htdocs/scripts/class_test.php on line 2
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=26121&edit=1[/url]
sniper@php.net Guest
-
Error Creating Control - No parameterless constructor defined for this object
I have created a custom control for ASP.NET using VB.NET. My control inherits from the System.Web.UI.WebControls.CompositeControl class, and is... -
Strange error from: Dim myState As Object() = CType(savedState, Object())
Every book and every website I've seen that talks about how to save state for child controls in a composite webcontrol says to do something like... -
#26121 [NEW]: Object defined before object - error
From: closer at netnitco dot net Operating system: Redhat Linux 9.0 / Apache 2.0.46 PHP version: 5.0.0b2 (beta2) PHP Bug Type: ... -
HELP! Error Loading ASPX : Object Reference not set to an instance object
Hello, When i run my aspx i get this weird error: System.NullReferenceException: Object reference not set to an instance of an object. at... -
Error in CreatObject(""): 32797: Application-defined or object-define error
Hi, I am getting "Application-defined or object-define error" when trying to instantiate an MTS component. However, when I run the VB source-code...



Reply With Quote

