Bug #52099 [Fbk->Opn]: fdf_get_value max size
| From: | carrieraglan at gmail dot com | Date: | Wed, 16 Jun 2010 19:35:49 +0000 |
| Subject: | Bug #52099 [Fbk->Opn]: fdf_get_value max size | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-151549@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52099&edit=1
ID: 52099
User updated by: carrieraglan at gmail dot com
Reported by: carrieraglan at gmail dot com
Summary: fdf_get_value max size
-Status: Feedback
+Status: Open
Type: Bug
Package: FDF related
Operating System: Windows
-PHP Version: 5.3.2
+PHP Version: 5.2.10
New Comment:
version should be 5.2.10
Previous Comments:
------------------------------------------------------------------------
[2010-06-16 17:31:33] pajoye@php.net
FDF is not included in php anymore, do you mean 5.2.13?
------------------------------------------------------------------------
[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