Reflection_Function constructor crashes with non-existant function's name
| Bug #27519 | Reflection_Function constructor crashes with non-existant function's name | ||||
|---|---|---|---|---|---|
| Submitted: | 2004-03-07 14:13 UTC | Modified: | 2004-04-08 16:40 UTC | ||
| From: | su1d at phpclub dot net | Assigned: | helly (profile) | ||
| Status: | Closed | Package: | Scripting Engine problem | ||
| PHP Version: | 5.0.0RC1-dev | OS: | * | ||
| Private report: | No | CVE-ID: | None | ||
[2004-03-07 14:13 UTC] su1d at phpclub dot net
Description:
------------
E:\>php -v
PHP 5.0.0b4 (cli) (built: Feb 12 2004 18:00:13)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.0-dev, Copyright (c) 1998-2004 Zend Technologies
E:\>php -r "$F = new Reflection_Function('abs');"
E:\>php -r "$F = new Reflection_Function('no_function');"
** BANG! **
Reproduce code:
---------------
$F = new Reflection_Function('no_function');
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2004-03-07 15:39 UTC] derick@php.net
[2004-03-07 16:16 UTC] su1d at phpclub dot net
[2004-03-09 20:01 UTC] su1d at phpclub dot net
[2004-03-26 10:51 UTC] tony2001 at phpclub dot net
[2004-04-08 12:43 UTC] su1d at phpclub dot net
Negative. The bug persists: C:\>php -v PHP 5.0.0RC2-dev (cli) (built: Apr 8 2004 16:16:41) Copyright (c) 1997-2004 The PHP Group Zend Engine v2.0.0RC2-dev, Copyright (c) 1998-2004 Zend Technologies C:\>php -r "$r = new ReflectionFunction('abs');" C:\>php -r "$r = new ReflectionFunction('nofunc');" ** CRASH **[2004-04-08 16:40 UTC] helly@php.net