logo       

4074 - in trunk/Template: . src tests [eZComponents: Trunk]: msg#00244

web.ezcomponents.cvs

Subject: 4074 - in trunk/Template: . src tests [eZComponents: Trunk]

Author: Raymond Bosman
Date: 2006-11-27 11:24:31 +0100 (Mon, 27 Nov 2006)
New Revision: 4074

Log:
- Fixed issue #9601: wrong __isset implementation in Template/template.php
# Submitted Derick's patch.

Modified:
trunk/Template/ChangeLog
trunk/Template/src/template.php
trunk/Template/tests/template_test.php

Modified: trunk/Template/ChangeLog
===================================================================
--- trunk/Template/ChangeLog 2006-11-27 10:22:42 UTC (rev 4073)
+++ trunk/Template/ChangeLog 2006-11-27 10:24:31 UTC (rev 4074)
@@ -1,3 +1,6 @@
+- Fixed issue #9601: wrong __isset implementation in Template/template.php
+
+
1.1beta2 - Monday 20 November 2006
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


Modified: trunk/Template/src/template.php
===================================================================
--- trunk/Template/src/template.php 2006-11-27 10:22:42 UTC (rev 4073)
+++ trunk/Template/src/template.php 2006-11-27 10:24:31 UTC (rev 4074)
@@ -136,7 +136,7 @@
case 'astTree':
case 'stream':
case 'output':
- return isset( $name );
+ return isset( $this->properties[$name] );
default:
return false;
}

Modified: trunk/Template/tests/template_test.php
===================================================================
--- trunk/Template/tests/template_test.php 2006-11-27 10:22:42 UTC (rev
4073)
+++ trunk/Template/tests/template_test.php 2006-11-27 10:24:31 UTC (rev
4074)
@@ -51,10 +51,10 @@
{
$template = new ezcTemplate();

- self::assertTrue( isset( $template->configuration ),
- 'Property <configuration> is missing' );
+ self::assertFalse( isset( $template->configuration ), "Property
'configuration' is already set, but it should be set only after it has been
'get' before." );
self::assertSame( 'ezcTemplateConfiguration', get_class(
$template->configuration ),
'Property <configuration>' );
+ self::assertTrue( isset( $template->configuration ), "Property
'configuration' is not set, even after requesting it." );
}

public function testReExecuteTemplate()



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise