projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5f97270
)
Pman.php
author
Alan Knowles
<alan@roojs.com>
Thu, 15 Aug 2019 06:01:20 +0000
(14:01 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 15 Aug 2019 06:01:20 +0000
(14:01 +0800)
Pman.php
patch
|
blob
|
history
diff --git
a/Pman.php
b/Pman.php
index
7b22f0b
..
f790e7c
100644
(file)
--- a/
Pman.php
+++ b/
Pman.php
@@
-382,7
+382,7
@@
class Pman extends HTML_FlexyFramework_Page
function tempName($ext, $deleteOnExit=false)
{
if ($deleteOnExit && self::$deleteOnExit === false) {
function tempName($ext, $deleteOnExit=false)
{
if ($deleteOnExit && self::$deleteOnExit === false) {
- register_shutdown_function(array(
$this
,'deleteOnExit'));
+ register_shutdown_function(array(
'Pman'
,'deleteOnExit'));
self::$deleteOnExit = array();
}
$x = tempnam(ini_get('session.save_path'), HTML_FlexyFramework::get()->appNameShort.'TMP');
self::$deleteOnExit = array();
}
$x = tempnam(ini_get('session.save_path'), HTML_FlexyFramework::get()->appNameShort.'TMP');
@@
-396,7
+396,7
@@
class Pman extends HTML_FlexyFramework_Page
}
static $deleteOnExit = false;
}
static $deleteOnExit = false;
- function deleteOnExit()
+
static
function deleteOnExit()
{
foreach($self::$deleteOnExit as $fn) {
unlink($fn);
{
foreach($self::$deleteOnExit as $fn) {
unlink($fn);