- closeFile() is now no longer be callable publicly. If a file needs to be
closed, it can simply be set to NULL (or unset). Class fields which points to
such objects (e.g. pointerInstance) should always be set to NULL and not
removed as this may cause checks with is_null() to trigger an E_NOTICE:
<?php
error_reporting(E_ALL);
class Object {}
$var = new Object();
$isNull = is_null($var);
var_dump($isNull);
unset($var);
$isNull = is_null($var);
var_dump($isNull);
?>
Being set to NULL or completly unset is a different thing.
- Updated 'core' to latest commit
Signed-off-by: Roland Haeder <roland@mxchange.org>
// Debug message
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('CRAWLER-SOURCE [' . __METHOD__ . ':' . __LINE__ . ']: File ' . $csvFileInstance->getFileName() . ' has been fully read.');
- // Try to close it
- $csvFileInstance->closeFile();
+ // Try to close it by actually unsetting (destructing) it
+ unset($csvFileInstance);
// This file as been fully read, so don't push it back on stack.
return;
-Subproject commit 4648ede712da5257e96eb4d88f0cc01cb2890740
+Subproject commit bd147745864d29d1dcb0392f366cddae7eb38740