php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63438 Strange behavior with nested rendering
Submitted: 2012-11-05 11:45 UTC Modified: 2012-11-06 09:10 UTC
From: 290182 at gmail dot com Assigned: laruence (profile)
Status: Closed Package: yaf (PECL)
PHP Version: Irrelevant OS: ubuntu
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: 290182 at gmail dot com
New email:
PHP Version: OS:

 

 [2012-11-05 11:45 UTC] 290182 at gmail dot com
Description:
------------
Strange behavior with nested rendering

Test script:
---------------
index.php:
<?php
function view($file){
	$view = new Yaf_View_Simple(dirname(__FILE__));

	return $view->render($file);
}

print view('outer.phtml');
?>

outer.phtml:
1 <?php print view('inner.phtml');?> 3

inner.phtml:
2

Expected result:
----------------
1 2 3

Actual result:
--------------
2 31

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-11-06 08:16 UTC] laruence@php.net
-Assigned To: +Assigned To: laruence
 [2012-11-06 08:37 UTC] laruence@php.net
-Summary: Yaf_View_Simple +Summary: Strange behavior with nested rendering
 [2012-11-06 08:44 UTC] laruence@php.net
Automatic comment from SVN on behalf of laruence
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=328256
Log: Fixed bug #63438 (Strange behavior with nested rendering)
 [2012-11-06 09:06 UTC] laruence@php.net
Automatic comment from SVN on behalf of laruence
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=328257
Log: Fixed similar issue(#63438) while error occrred &amp; correct test
 [2012-11-06 09:10 UTC] laruence@php.net
-Status: Assigned +Status: Closed
 [2012-11-06 09:10 UTC] laruence@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [2013-06-27 03:29 UTC] laruence@php.net
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=pecl/system/yaf.git;a=commit;h=48017639d5e1c00645a7662e3baf213f4f3a8b2a
Log: Fixed bug #63438 (Strange behavior with nested rendering)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 12:01:30 2024 UTC