Bug #52099 [Opn->Fbk]: fdf_get_value max size
Edit report at http://bugs.php.net/bug.php?id=52099&edit=1
ID: 52099
Updated by: pajoye@php.net
Reported by: carrieraglan at gmail dot com
Summary: fdf_get_value max size
-Status: Open
+Status: Feedback
Type: Bug
Package: FDF related
Operating System: Windows
PHP Version: 5.3.2
New Comment:
FDF is not included in php anymore, do you mean 5.2.13?
Previous Comments:
------------------------------------------------------------------------
[2010-06-16 17:27:11] carrieraglan at gmail dot com
Description:
------------
if fdf_set_value is set with a string of 255 characters nothing is
returned when using fdf_get_value
Test script:
---------------
<?
$outfdf = fdf_create();
$value = 'PAINT (including paint, lacquer, enamel, stain, shellac,
varnish, polish, liquid filler and liquid lacquer base) with not more
than 20 per cent nitrocellulose by mass if the nitrogen content of the
nitrocellulose is not more than 12.6 per cent by mass; or';
fdf_set_value($outfdf, 'Stringof255characters', $value, 0);
print "Test1: ";
print fdf_get_value($outfdf, 'Stringof255characters'); //prints ''
print "<br>";
$value = substr($value,0,253);
fdf_set_value($outfdf, 'Stringof253characters', $value, 0);
print "Test2: ";
print fdf_get_value($outfdf, 'Stringof253characters'); //prints the 253
characters of the string
?>
Expected result:
----------------
both print fdf_get_value should print the value of the string
Actual result:
--------------
if fdf_set_value is set with a string of 255 characters nothing is
returned when using fdf_get_value
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52099&edit=1
Thread (4 messages)