Edit report at http://bugs.php.net/bug.php?id=54085&edit=1

 ID:                 54085
 Updated by:         ahar...@php.net
 Reported by:        nong_asc at hotmail dot com
 Summary:            problem when encode
 Status:             Bogus
 Type:               Bug
 Package:            MySQL related
 Operating System:   window xp
 PHP Version:        5.2.17
 Block user comment: N
 Private report:     N

 New Comment:

Please report this to Zend, not to us. We can't support third-party

extensions like Zend Guard.


Previous Comments:
------------------------------------------------------------------------
[2011-02-24 13:22:01] johan...@php.net

Do not file bugs when you have Zend extensions (zend_extension=)
loaded. Examples are Zend Optimizer, Zend Debugger, Turck MM Cache,
APC, Xdebug and ionCube loader.  These extensions often modify engine
behavior which is not related to PHP itself.

Please report issues with commercial software to the vendor.

------------------------------------------------------------------------
[2011-02-24 04:20:51] nong_asc at hotmail dot com

Description:
------------
When I encode by zend guard(v5.0.0) and after I run this code I have a
message 



 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to
allocate 

54263789 bytes) in
C:\h\ghx\apache\htdocs\alpha\include\connection.inc.php on 

line 1072



but if I run and not encode it's work well.



PHP Version 5.2.16

 This program makes use of the Zend Scripting Language Engine:

Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies

    with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend


Technologies

    with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend
Technologies







Test script:
---------------
<?php

    $string = "SELECT FIELDA, FIELDB, FIELDC FROM TABLE WHERE FIELDA >
100";

        $openselect = 0;

        $parole = explode(" ",$string);

        

        $i = 0;

        $trovata = 0;   

        foreach ($parole as $elabora){



                        if((strpos($elabora,"SELECT")!==false && $trovata==0)){ 

                        $openselect++;

                        }

                        if((strpos($elabora,"FROM")!==false && $trovata==0)){   

                        $openselect--;

                        }

                        

                        if($openselect==0){

                                $trovata = 1;

                                $condizione .= " ".$elabora;    

                                echo "linke 1074  ".$condizione."<br>";

                                array_splice($parole,$i);               

                        }



                $i++;

        }

?>



------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=54085&edit=1

Reply via email to