php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3835 segfault in func_get_args with implode
Submitted: 2000-03-15 07:29 UTC Modified: 2002-10-01 13:44 UTC
From: wico at cnh dot nl Assigned:
Status: Wont fix Package: Reproducible Crash
PHP Version: 3.0 Latest CVS (15/03/2000) OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
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 — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
26 - 16 = ?
Subscribe to this entry?

 
 [2000-03-15 07:29 UTC] wico at cnh dot nl
Hiya

should explain enough:
<?
	function wico () {
	// this works
		$args = func_get_args();
		$args = implode(",", $args); 
	
	// this segfaults
		$args = implode(",", func_get_args());
		
	// make sure something should be displayed
		echo "PLOP ($args)";
	}
	
	Wico("Andy and Zeev this doesn't work :(");
?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-01 13:44 UTC] hholzgra@php.net
We are sorry, but can not support PHP 3 related problems anymore.
Momentum is gathering for PHP 5, and we think supporting PHP 3 will
lead to a waste of resources which we want to put into getting PHP 5
ready. Ofcourse PHP 4 will will continue to be supported for the
forseeable future.

in php 4 this gives an eplanatory error message

Fatal error:  func_get_args(): Can't be used as a function parameter in - on line 8
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 10:01:26 2024 UTC