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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
23 + 6 = ?
Subscribe to this entry?

 
 [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

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: Sat Sep 07 23:01:27 2024 UTC