Bug #54085 [Com]: problem when encode
| From: | nong_asc at hotmail dot com | Date: | Fri, 25 Feb 2011 03:52:32 +0000 |
| Subject: | Bug #54085 [Com]: problem when encode | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-159032@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54085&edit=1
ID: 54085
Comment by: nong_asc at hotmail dot com
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:
Thank you
Previous Comments:
------------------------------------------------------------------------
[2011-02-24 13:22:16] aharvey@php.net
Please report this to Zend, not to us. We can't support third-party
extensions like Zend Guard.
------------------------------------------------------------------------
[2011-02-24 13:22:01] johannes@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