|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-12-17 01:01 UTC] contact at NOSPAM dot swiftlytilting dot com
Description: ------------ Thank you for your quick attention to bug #16978 Unfortunately though it seems the modification made things worse - now you do not have to call the function to cause a crash. 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 SVN. 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; } ?> Expected result: ---------------- expect bcompiled code to run normally Actual result: -------------- crashes PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 14:00:01 2025 UTC |
Hmmm... I use the following test script to check my fix: <?php define("SOME_CONST",15); function foo($var = SOME_CONST) { echo "var=$var\n"; } foo(); ?> with expected output var=15 It works on my PHP 5.3.2-dev (cli) built from the current SVN sources on Unix. But I will re-check it with a Win32 build.