Function __global->check_memory_limit_for

Definitions

sources/images2.php

  • Check we can load the given file, given our memory limit.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$file_path PATH No No required parameter N/A N/A The file path we are trying to load
$exit_on_error boolean No No True N/A N/A Whether to exit the software if an error occurs

Returns

  • Success status
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Check we can load the given file, given our memory limit.
 *
 * @param  PATH $file_path The file path we are trying to load
 * @param  boolean $exit_on_error Whether to exit the software if an error occurs
 * @return boolean Success status
 */

function check_memory_limit_for(string $file_path, bool $exit_on_error = true) : bool