(i filed a bug report/feature request for this on bugs.php.net and assigned it to myself [email protected])
The default behavior for the FDF Toolkit is to return an FDFErcNoValue for the FDFGetValue when the field exists but has no value.
Whether or not this is truly an error is debateable. It seems to become an issue in documents created by Acrobat 5 when optional fields are included in a form with required fields since the default behavior seems to be to populate the HTTP_FDF_DATA with the results of the FDFNextFieldName enumerator, which would include the fields which have no value.
This would not be a problem except that the PHP function fdf_get_value() does not specifically test for the FDFErcNoValue condition but, instead, tests for the more general FDFErcOK. If this value is not the result of the error code, the system issues warnings (the display of which could be turned off), but the broader question is, should this be a warning condition at all?
Put another way, should a return of FDFErcNoValue for FDFGetValue be considered an event worth generating a warning?
PHP.mk документација
fdf_get_value
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
Патека
function.fdf-get-value.php
Локална патека за оваа страница.
Извор
php.net/manual/en
Оригиналниот HTML се реупотребува и локално се стилизира.
Режим
Прокси + превод во позадина
Кодовите, табелите и белешките остануваат читливи во истиот тек.
Референца
function.fdf-get-value.php
fdf_get_value
Референца за `function.fdf-get-value.php` со подобрена типографија и навигација.
fdf_get_value
(PHP 4, PHP 5 < 5.3.0, PECL fdf SVN)
fdf_get_value — Земи ја вредноста на полето
= NULL
Ја добива вредноста за бараното поле.
Параметри
fdf_document- за дадено поле. fdf_create(), fdf_open() or fdf_open_string().
fieldname- Рачката на FDF документот, вратена од
which- Елементите на поле од тип низа може да се добијат со поминување на овој опционален параметар, почнувајќи од нула. За полиња што не се низи, овој параметар ќе биде игнориран.
Вратени вредности
Враќа вредност на полето.
Види Исто така
- fdf_set_value() - Постави ја вредноста на полето
Белешки од корисници 1 белешка
mclinden на informed dot net ¶
пред 23 години