Bug #54085 [NEW]: problem when encode
| From: | nong_asc at hotmail dot com | Date: | Thu, 24 Feb 2011 03:20:52 +0000 |
| Subject: | Bug #54085 [NEW]: problem when encode | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-158988@lists.php.net to get a copy of this message | ||
From:
Operating system: window xp
PHP version: 5.2.17
Package: MySQL related
Bug Type: Bug
Bug description:problem when encode
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 bug report at http://bugs.php.net/bug.php?id=54085&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54085&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54085&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54085&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=54085&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54085&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=54085&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=54085&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=54085&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=54085&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=54085&r=support
Expected behavior: http://bugs.php.net/fix.php?id=54085&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=54085&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=54085&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=54085&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54085&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=54085&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=54085&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=54085&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=54085&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=54085&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=54085&r=mysqlcfg