Development

#3595 (include_partial changes arrays)

You must first sign up to be able to contribute.

Ticket #3595 (closed defect: fixed)

Opened 7 months ago

Last modified 7 months ago

include_partial changes arrays

Reported by: benjaminowe Assigned to: fabien
Priority: major Milestone: 1.1.0 RC2
Component: other Version: 1.1.0 RC1
Keywords: partial array modification Cc:
Qualification: Unreviewed

Description

In a template, when executing the following (test/templates/_test.php is a completely empty partial)

$test = array();

$test[] = 'a';

$test[] = 'b';

print_r( $test );

/**

Outputs

Array (

[0] => a [1] => b

)

As expected

*/

foreach( $test as $t ) {

include_partial( 'test/test', array( 't' => $t ) );

}

print_r( $test );

/**

Outputs

Array (

[0] => b [1] => b

)

;(

*/

Change History

05/20/08 20:41:45 changed by fabien

  • milestone set to 1.1.0 RC2.

05/21/08 17:09:47 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.

(In [9151]) reverted r7949 (refs #3151, closes #3595)