Zend Framework

Zend PDF loads Zend_Memory_Container_Locked Object into Properties Array - which may cause fatal error

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.8.4, 1.10.3
  • Fix Version/s: None
  • Component/s: Zend_Memory, Zend_Pdf
  • Labels:
    None

Description

I have at least one PDF where when loaded by Zend_PDF, Zend_Memory_Container_Locked objects are pulled into the Document Type Dictionary properties array.

Array
(
...
[SaveStreams] => Array
(
[Q] => Zend_Memory_Container_Locked Object
(
[value] => Q
)

[q] => Zend_Memory_Container_Locked Object
(
[value] => q
)

)

[Changes] => Array
(
[0] => Array
(
[Creator] => SPDF
[Producer] => SPDF
[ModDate] => D:20060401000353-05'00'
[CreationDate] => D:20060401000353-05'00'
)

[1] => Array
(
[Version] => 3.0, SPDF Build Number 1085 for Linux 7, Application Build Date: May 15 2003
[ModDate] => D:20060401050353-00'00'
[Product] => AppendPro
[Vendor] => Appligent
)

)
...
)

If you then modify the properties array, saving crashes with a fatal error.

Issue Links

Activity

Hide
Chris Hiestand added a comment -

Code sufficient to reproduce the error

Show
Chris Hiestand added a comment - Code sufficient to reproduce the error
Hide
Chris Hiestand added a comment -

PDF through which this bug is reproducible. It does have an atypical properties structure.

Show
Chris Hiestand added a comment - PDF through which this bug is reproducible. It does have an atypical properties structure.
Hide
Chris Hiestand added a comment -

metadata output from adobe acrobat - may not be useful.

Show
Chris Hiestand added a comment - metadata output from adobe acrobat - may not be useful.
Hide
Chris Hiestand added a comment -

Interestingly, Adobe Acrobat ignores the array(s). This also may not be useful.

Show
Chris Hiestand added a comment - Interestingly, Adobe Acrobat ignores the array(s). This also may not be useful.
Hide
Chris Hiestand added a comment -

A work-around for this issue is to wipe the metadata and start over from scratch.

Show
Chris Hiestand added a comment - A work-around for this issue is to wipe the metadata and start over from scratch.
Hide
Chris Hiestand added a comment -

This is still a problem in 1.10.3

error message:
PHP Catchable fatal error: Object of class Zend_Memory_Container_Locked could not be converted to string in /www/ZendFramework/library/Zend/Pdf/Element.php on line 155

Show
Chris Hiestand added a comment - This is still a problem in 1.10.3 error message: PHP Catchable fatal error: Object of class Zend_Memory_Container_Locked could not be converted to string in /www/ZendFramework/library/Zend/Pdf/Element.php on line 155

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: