|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-02-24 13:22 UTC] johannes@php.net
-Status: Open
+Status: Bogus
[2011-02-24 13:22 UTC] johannes@php.net
[2011-02-24 13:22 UTC] aharvey@php.net
[2011-02-25 04:52 UTC] nong_asc at hotmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 20:00:01 2025 UTC |
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++; } ?>