Project

General

Profile

Actions

Feature proposal #6900

closed

Implement capturing of echos in code usage

Added by krileon almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Low
Assignee:
Target version:
Start date:
30 November 2017
Due date:
% Done:

100%

Estimated time:

Description

Currently echos are discarded and only the return value for the anonymous function is output. It however should use the captured echoes, etc.. if no return value is supplied to allow either/or. Maybe combine them if both echos and returns are used.

Actions #1

Updated by krileon almost 7 years ago

  • Target version changed from 7.0.1 to 7.1.0
Actions #2

Updated by krileon almost 7 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

As long as the return value is a string, empty string, or null the echos will be PREPENDED to the content output. It will not prepend the echo if the return value is an integer, object, array, boolean, etc..

Actions #3

Updated by krileon almost 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF