|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-12-16 14:04 UTC] val@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 17:00:02 2025 UTC |
Description: ------------ Using constants as default parameter values in function definitions causes bcompiler to crash using bcompiler_write_file. I'm using php 5.3.1, bcompiler 0.91 This does not occur in 0.6, not sure about 0.7 or 0.8 though Reproduce code: --------------- <?php define("SOME_CONST",1); function foo($var = SOME_CONST) { return; } foo(); ?> Expected result: ---------------- expect code to run normally Actual result: -------------- causes abnormal program termination (crash)