|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-09-29 18:48 UTC] skissane at gmail dot com
[2015-02-26 07:39 UTC] krakjoe@php.net
-Status: Assigned
+Status: Suspended
[2015-02-26 07:39 UTC] krakjoe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 18 17:00:01 2025 UTC |
Description: ------------ Using what should be apd-1.0.1 (though is said to be 0.9 in phpinfo) I get exceptions using the PHP5 reflection API. This happens whenever apd is enabled in my php.ini irregardless of wether I actually use the apd function. When I disable loading of the apd.so the problem goes away. Reproduce code: --------------- <?php class Foo { function Bar($var1='baz') {} } $class = new ReflectionClass('Foo'); $method = $class->getMethod('Bar'); $parameters = $method->getParameters(); if($parameters[0]->getDefaultValue() == 'baz') { print "Correct\n"; } else { print "Error\n"; } ?> Expected result: ---------------- "Correct\n" is printed to stdout. Actual result: -------------- PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Internal error' in /usr/home/jacob/apd_bug/apdbug.php:12 Stack trace: #0 /usr/home/jacob/apd_bug/apdbug.php(12): ReflectionParameter->getDefaultValue() #1 {main} thrown in /usr/home/jacob/apd_bug/apdbug.php on line 12 Fatal error: Uncaught exception 'ReflectionException' with message 'Internal error' in /usr/home/jacob/apd_bug/apdbug.php:12 Stack trace: #0 /usr/home/jacob/apd_bug/apdbug.php(12): ReflectionParameter->getDefaultValue() #1 {main} thrown in /usr/home/jacob/apd_bug/apdbug.php on line 12