Reputation: 703
So I first extract a single file from a ipa file(.plist file ) and then parse it with https://github.com/rodneyrehm/CFPropertyList.
Here is my php script:-
<?php
error_reporting( E_ALL );
ini_set( 'display_errors', 'on' );
namespace CFPropertyList;
?>
I want to first try parsing binary string but it fails with error "Fatal error: Uncaught exception 'CFPropertyList\PListException' with message 'Invalid binary string!' "
I tried:-
catch(\PListException $e)
catch("CFPropertyList\PListException" $e)
catch(CFPropertyList\PListException $e)
but none of them works. Any workaround ?
Upvotes: 0
Views: 84
Reputation: 280
When in doubt you can be all-inclusive and use catch (\Exception $e)
instead.
Upvotes: 1