Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[PHP] gzencode(): insufficient memory

Empfohlene Antworten

Veröffentlicht

Hallo zusammen,

Ich habe hier eine TAR-Klasse mit der ich "on-the-fly" Archive erstelle.

Wenn mein Ordner zu viele Dateien enthält, bricht mein Script mit folgender Meldung ab.

 Warning: gzencode(): insufficient memory in class.tar.inc.php on line 632 

Ich habe bereits versucht, via

@ini_set('memory_limit', '32M');

und direktes Eingtragen dieses Wertes in der PHP.ini diesem Problem aus dem Weg zu gehen.

Es scheint mir so, als würde eine andere "Umgebungsvariable" diesen Speicher begrenzen...

Weiss jemand von euch welche? Wo muss ich schauen?

Oder kennt jemand evtl. TAR bzw ZIP Klassen, mit denen man auch ohne Probleme größere Dateien erstellen kann?

Danke und Gruß,

Markus

was steht den in zeile 632, doof gefragt?

Hi

was steht den in zeile 632, doof gefragt?

Da das ganze eine Warnung einer PHP-eigenen Funktion ist, hab ich den Code oben nicht gepostet, da er meiner Meinung nach hier sowieso nicht weiterhilft, aber bitte:


function toTarOutput($filename,$useGzip)
{
if ( !$filename ) {
return false;
}

// Encode processed files into TAR file format
$this->__generateTar();

// GZ Compress the data if we need to
if ( $useGzip ) {
// Make sure we have gzip support
if ( !function_exists("gzencode") ) {
return false;
}

$file = gzencode($this->tar_file); // Zeile: 632
} else {
$file = $this->tar_file;
}

return $file;
}[/PHP]

Hier gibts das File zum Download

Gruß,

Markus

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.