Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> php5: destruktor
qbba
post
Post #1





Grupa: Zarejestrowani
Postów: 78
Pomógł: 0
Dołączył: 25.10.2002
Skąd: z kabla:)/ czewa

Ostrzeżenie: (10%)
X----


witam (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg) ,

Zauwazylem ze jesli w destruktorze znajdzie sie cos takiego:

[php:1:a96b09808b]<?php
class blabla
{
...
function __destruct()
{
$GLOBALS['smarty'] -> display('test.tpl');
}
...
}
?>[/php:1:a96b09808b]
Apache za kazdym razem sie wywala. W logach jest cos takiego:
Kod
...

[Tue Oct 14 22:32:50 2003] [notice] Parent: child process exited with status 3221225477 -- Restarting.

[Tue Oct 14 22:32:57 2003] [notice] Parent: Created child process 3888

[Tue Oct 14 22:33:00 2003] [notice] Child 3888: Child process is running

[Tue Oct 14 22:33:00 2003] [notice] Child 3888: Acquired the start mutex.

[Tue Oct 14 22:33:00 2003] [notice] Child 3888: Starting 250 worker threads.

...


Uzywam php5.0.0b2-dev(jako mdul servera) + apache 2.0.47

Pomóżcie :PPP
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
qbba
post
Post #2





Grupa: Zarejestrowani
Postów: 78
Pomógł: 0
Dołączył: 25.10.2002
Skąd: z kabla:)/ czewa

Ostrzeżenie: (10%)
X----


chyba do tego sluzy destruktor zeby cos jeszcze uruchomic, dokonczyc.... Chyba ze Cie zle interpretuje. Moze wazne jest miejsce umieszczenia destruktora?
Destruktor mam wrzucony zaraz po konstruktorze.
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 27.09.2025 - 15:41