php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15713 Function in get_defined_functions() array causing fatal error.
Submitted: 2002-02-25 09:49 UTC Modified: 2002-02-25 10:21 UTC
From: ahristov at icygen dot com Assigned:
Status: Closed Package: WDDX related
PHP Version: 4.1.1 OS: Win2000
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ahristov at icygen dot com
New email:
PHP Version: OS:

 

 [2002-02-25 09:49 UTC] ahristov at icygen dot com
<?php
	$all = get_defined_functions();
	$internal = $all['internal'];
	if (in_array('wddx_packet_start',$internal)){
		$packet_id?=?wddx_packet_start("FORUM TREE");
		//Fatal error:  Call to undefined function:   wddx_packet_start() in c:\apache\htdocs\a.php on line 5
	}
?>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-25 10:21 UTC] ahristov at icygen dot com
Very strange to me. Some of the code from a webpage - article on phpbuilder explaining WDDX and the problems began. Parse error, fatal errors. I rewrote the code by myself and everything is ok. In UEdit the two files looks equal but when comparing with HEX editor I saw that in mine file the blanks are 0x20 as normal but in the copied example they are 0xA0. These A0s fools the lexical analyzer of PHP and UEdit(i'm using syntax highlighting).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC