Hi,
I'm fetching some data in facts using getvar, but as soon as there is a capital letter in the result, the result doesn't go in the variable.
For example, this never returns anything:
$directive_value_fact = getvar("::zend_directive_fileValue_${name}")
The generated fact that I'm looking for contains "fileValue" so I don't really have the choice, except to maybe edit the fact-gathering script to do replace, but it may cause other problems.
I'm on stdlib 4.16 and I don't see any bugfixes for that in the changelog of more recent versions.
Another example... This works, as long as "name" doesn't contain a capital letter. And some extensions start with a capital letter (like Phar).
$extension_status_fact = getvar("::zend_extension_status_${name}")
Final example. This works, as long as ${user_app_name} doesn't contain a capital letter.
$app_name_fact = getvar("::zend_application_name_${user_app_name}")
Actually, from my testing I found that that if ${user_app_name} is all caps, it would work.
Any ideas welcome. For ${user_app_name}, the workaround would be to only use all-lowercase application names, but since we don't decide the exact name of PHP extensions, the workaround doesn't work.
As you can see in the facts, the only way to get the data that we need is to get the zend_directive_fileValue to the the current value of the directive.
zend_directive_name_upload_max_filesize=upload_max_filesize
zend_directive_section_upload_max_filesize=
zend_directive_fileValue_upload_max_filesize=32M
zend_directive_defaultValue_upload_max_filesize=32M
zend_directive_isMemoryOnly_upload_max_filesize=0
zend_directive_previousValue_upload_max_filesize=
zend_directive_description_upload_max_filesize=The maximum size of an uploaded file
zend_directive_type_upload_max_filesize=shorthand
zend_directive_listValues_upload_max_filesize=
zend_directive_context_upload_max_filesize=Extension
zend_directive_contextName_upload_max_filesize=Filesystem and Streams
zend_directive_units_upload_max_filesize=
Thanks,
Ugo