#34811 [NEW]: fdf_get_value max size

2005-10-10 Thread kc at netspirit dot ch
From: kc at netspirit dot ch
Operating system: Linux
PHP version:  4.4.0
PHP Bug Type: FDF related
Bug description:  fdf_get_value max size

Description:

Problem getting value of PDF-Multiline-Fields if the value is loger than
256 chars.

found ASInt32 nr, size = 256; in PHP_FUNCTION(fdf_get_value) in
ext/fdf/fdf.c

Reproduce code:
---
Reprodiction:

- go to: http://www.anyform.ch/test/132.pdf
- fill in the big field
- click on Ausgabe-Optionen

Expected result:

strText32 is of type string hdsfj ... sdfhjsd 



Actual result:
--
strText32 is of type boolean  

-- 
Edit bug report at http://bugs.php.net/?id=34811edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=34811r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=34811r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=34811r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=34811r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=34811r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=34811r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=34811r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=34811r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34811r=support
Expected behavior:   http://bugs.php.net/fix.php?id=34811r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=34811r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=34811r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=34811r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=34811r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=34811r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=34811r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34811r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=34811r=float
No Zend Extensions:  http://bugs.php.net/fix.php?id=34811r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=34811r=mysqlcfg


#34811 [Fbk-Opn]: fdf_get_value max size

2005-10-10 Thread kc at netspirit dot ch
 ID:   34811
 User updated by:  kc at netspirit dot ch
 Reported By:  kc at netspirit dot ch
-Status:   Feedback
+Status:   Open
 Bug Type: FDF related
 Operating System: Linux
 PHP Version:  4.4.0
 New Comment:

code i used:

?php
$pdformp = fopen(./test.dat, w);
$fdf = fdf_open_string($HTTP_FDF_DATA);
while ($field = fdf_next_field_name($fdf, $field)) {
echo $field is of type  . gettype ( fdf_get_value ( $fdf, $field ) )
.  \ . fdf_get_value ( $fdf, $field ) . \ ;
fwrite($pdformp, $field= . fdf_get_value ( $fdf, $field ) . \n);
}
fdf_close($fdf);
fclose($pdformp);
?


Previous Comments:


[2005-10-10 15:50:56] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with ?php and ends with ?,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.





[2005-10-10 15:45:00] kc at netspirit dot ch

Description:

Problem getting value of PDF-Multiline-Fields if the value is loger
than 256 chars.

found ASInt32 nr, size = 256; in PHP_FUNCTION(fdf_get_value) in
ext/fdf/fdf.c

Reproduce code:
---
Reprodiction:

- go to: http://www.anyform.ch/test/132.pdf
- fill in the big field
- click on Ausgabe-Optionen

Expected result:

strText32 is of type string hdsfj ... sdfhjsd 



Actual result:
--
strText32 is of type boolean  





-- 
Edit this bug report at http://bugs.php.net/?id=34811edit=1