php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54085 problem when encode
Submitted: 2011-02-24 04:20 UTC Modified: 2011-02-24 13:22 UTC
From: nong_asc at hotmail dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 5.2.17 OS: window xp
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nong_asc at hotmail dot com
New email:
PHP Version: OS:

 

 [2011-02-24 04:20 UTC] 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++;
	}
?>


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-02-24 13:22 UTC] johannes@php.net
-Status: Open +Status: Bogus
 [2011-02-24 13:22 UTC] 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 13:22 UTC] aharvey@php.net
Please report this to Zend, not to us. We can't support third-party
extensions like Zend Guard.
 [2011-02-25 04:52 UTC] nong_asc at hotmail dot com
Thank you
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 02:01:29 2024 UTC