|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-09-25 16:45 UTC] abies@php.net
[2003-09-25 18:10 UTC] cliff at may dot be
[2003-09-26 01:24 UTC] pollita@php.net
[2003-09-26 05:38 UTC] cliff at may dot be
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 14:00:01 2025 UTC |
Description: ------------ When the wrong value is used for a constant, the error message repeats the erroneous constant in the warning. I don't totally understand the code but it appears to be trying to use the erroneous value too. So either just the second EX(opline)->op2.u.constant.value.str.val needs to be changed or the code needs fixing too. Reproduce code: --------------- if (!zend_get_constant(EX(opline)->op2.u.constant.value.str.val, EX(opline)->op2.u.constant.value.str.len, &EX_T(EX(opline)->result.u.var).tmp_v ar TSRMLS_CC)) { zend_error(E_NOTICE, "Use of undefined constant %s - assumed '%s'", EX(opline)->op2.u.constant.value.str.val, EX(opline)->op2.u.constant.value.str.val); EX_T(EX(opline)->result.u.var).tmp_var = EX(opline)->op2.u.constant; zval_copy_ctor(&EX_T(EX(opline)->result.u.var).tmp_var); } Expected result: ---------------- Notice: Use of undefined constant EXTRACT_OVERWRITE - assumed 'EXTR_OVERWRITE' in ... Actual result: -------------- Notice: Use of undefined constant EXTRACT_OVERWRITE - assumed 'EXTRACT_OVERWRITE' in ...