File tree 3 files changed +25
-5
lines changed
Filter options
3 files changed +25
-5
lines changed
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ Zencoder API PHP Library
3
3
4
4
Author: [ Steve Heffernan] ( http://www.steveheffernan.com ) (steve (a) zencoder (.) c ; om)
5
5
Company: [ Zencoder - Online Video Encoder] ( http://zencoder.com )
6
- Version: 1.2
7
- Date: 2011-08-06
6
+ Version: 1.3
7
+ Date: 2011-09-21
8
8
Repository: < http://github.com/zencoder/zencoder-php/ >
9
9
10
10
For more details on the Zencoder API requirements visit
@@ -195,6 +195,7 @@ Your [notifications page](https://app.zencoder.com/notifications) will come in h
195
195
196
196
VERSIONS
197
197
---------
198
+ Version 1.3 - 2011-09-21 Fixed bundled SSL certification chain and made catch_and_parse() static
198
199
Version 1.2 - 2011-08-06 Added fixes for PHP Notices and SSL handling
199
200
Version 1.1 - 2010-06-04 Added General API Requests
200
201
Version 1.0 - 2010-04-02 Jobs and Notifications.
Original file line number Diff line number Diff line change 7
7
8
8
*/
9
9
define ('ZENCODER_LIBRARY_NAME ' , "ZencoderPHP " );
10
- define ('ZENCODER_LIBRARY_VERSION ' , "1.2 " );
10
+ define ('ZENCODER_LIBRARY_VERSION ' , "1.3 " );
11
11
12
12
// Add JSON functions for PHP < 5.2.0
13
13
if (!function_exists ('json_encode ' )) {
@@ -179,7 +179,7 @@ class ZencoderCURL {
179
179
CURLOPT_CONNECTTIMEOUT => 0 , // Time in seconds to timeout send request. 0 is no timeout.
180
180
CURLOPT_FOLLOWLOCATION => 1 , // Follow redirects.
181
181
CURLOPT_SSL_VERIFYPEER => 1 ,
182
- CURLOPT_SSL_VERIFYHOST => 1
182
+ CURLOPT_SSL_VERIFYHOST => 2
183
183
);
184
184
185
185
var $ connected ;
@@ -253,7 +253,7 @@ function ZencoderOutputNotification($params) {
253
253
if (!empty ($ params ["job " ])) $ this ->job = new ZencoderJob ($ params ["job " ], array ("build " => true ));
254
254
}
255
255
256
- function catch_and_parse () {
256
+ static function catch_and_parse () {
257
257
$ notificiation_data = json_decode (trim (file_get_contents ('php://input ' )), true );
258
258
return new ZencoderOutputNotification ($ notificiation_data );
259
259
}
Original file line number Diff line number Diff line change @@ -49,3 +49,22 @@ EvrRI5YPv5wN8nlFUzeaVi/oVxBw9u6JDEmJmsEj9cIqzEHPIqtlbreUgm0vQF9Y
49
49
3uuVK6ZyaFIZkSqudZ1OkubK3lTqGKslPOZkpnkfJn1h7X3S5XFV2JMXfBQ4MDzf
50
50
huNMrUnjl1nOG5srztxl1Asoa06ERlFE9zMILViXIa4=
51
51
-----END CERTIFICATE-----
52
+ -----BEGIN CERTIFICATE-----
53
+ MIIDJzCCApCgAwIBAgIBATANBgkqhkiG9w0BAQQFADCBzjELMAkGA1UEBhMCWkEx
54
+ FTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMR0wGwYD
55
+ VQQKExRUaGF3dGUgQ29uc3VsdGluZyBjYzEoMCYGA1UECxMfQ2VydGlmaWNhdGlv
56
+ biBTZXJ2aWNlcyBEaXZpc2lvbjEhMB8GA1UEAxMYVGhhd3RlIFByZW1pdW0gU2Vy
57
+ dmVyIENBMSgwJgYJKoZIhvcNAQkBFhlwcmVtaXVtLXNlcnZlckB0aGF3dGUuY29t
58
+ MB4XDTk2MDgwMTAwMDAwMFoXDTIwMTIzMTIzNTk1OVowgc4xCzAJBgNVBAYTAlpB
59
+ MRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUgVG93bjEdMBsG
60
+ A1UEChMUVGhhd3RlIENvbnN1bHRpbmcgY2MxKDAmBgNVBAsTH0NlcnRpZmljYXRp
61
+ b24gU2VydmljZXMgRGl2aXNpb24xITAfBgNVBAMTGFRoYXd0ZSBQcmVtaXVtIFNl
62
+ cnZlciBDQTEoMCYGCSqGSIb3DQEJARYZcHJlbWl1bS1zZXJ2ZXJAdGhhd3RlLmNv
63
+ bTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA0jY2aovXwlue2oFBYo847kkE
64
+ VdbQ7xwblRZH7xhINTpS9CtqBo87L+pW46+GjZ4X9560ZXUCTe/LCaIhUdib0GfQ
65
+ ug2SBhRz1JPLlyoAnFxODLz6FVL88kRu2hFKbgifLy3j+ao6hnO2RlNYyIkFvYMR
66
+ uHM/qgeN9EJN50CdHDcCAwEAAaMTMBEwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG
67
+ 9w0BAQQFAAOBgQAmSCwWwlj66BZ0DKqqX1Q/8tfJeGBeXm43YyJ3Nn6yF8Q0ufUI
68
+ hfzJATj/Tb7yFkJD57taRvvBxhEf8UqwKEbJw8RCfbz6q1lu1bdRiBHjpIUZa4JM
69
+ pAwSremkrj/xw0llmozFyD4lt5SZu5IycQfwhl7tUCemDaYj+bvLpgcUQg==
70
+ -----END CERTIFICATE-----
You can’t perform that action at this time.
0 commit comments