Re: Could Someone look at these bugreports, please

From: Date: Wed, 23 Feb 2000 20:40:36 +0000
Subject: Re: Could Someone look at these bugreports, please
Groups: php.dev 
Request: Send a blank email to php-dev+get-15906@lists.php.net to get a copy of this message
At 14:39 23-2-2000 -0500, Sterling Hughes wrote:
Hiya Could Someone look at these bugreports, please I think they rather important and will hit many users (including me :) bug id 3503 - @ causes memory leak? This bug should be closed. The @ goes before the function call NOT the variable even if it should be be4 the function (it works this way either, don't know if that's supposed to, else there should be a paser error) then it should not leak
bug id 3500 - memmory leak in $this and binary codes <?
                                       class Test {
                                               var $a = "";
                                               function plop () {
                                                       $this->a = implode ("",
file("http://www.cnh.net.local/homenieuws/php"));
                                               }
                                       }
                                       $wico = new Test();
                                       for ($x = 0; $x < 25000; $x++) {
                                               echo "$x<BR>\n"; flush();
                                               $wico->Plop();
                                       }
                               ?>
This code is incorrect, try: 1. You must provide the null character to implode in order for it to work properly
this works properly and should work this way
2. The function name is plop not Plop()
php is not casesensive for functions (should also be for classes)
3. You are not calling a constructor when you initialize the Test class, try instead: new Test;
this should not matter since there isn't a constructor (should be detected by php(4) which it does)
4. PHP does not support http re-directs therefore you must append a trailing slash on the end of your URL.
this only to get data with probaly null codes or something in it and has nothing to do with redirects or not as long as it gets data (even errorpages can contain null codes :)
Sterling Hughes sterling@designmultimedia.com
Greetz, Wico

« previous php.dev (#15906) next »