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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu May 30 03:01:30 2024 UTC