File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ PHP_METHOD(CairoContext, __construct)
193193 cairo_context_object * context_object ;
194194 cairo_surface_object * surface_object ;
195195
196- if (zend_parse_parameters_throw (ZEND_NUM_ARGS (), "| o" , & surface_zval ) == FAILURE ) {
196+ if (zend_parse_parameters_throw (ZEND_NUM_ARGS (), "o" , & surface_zval ) == FAILURE ) {
197197 return ;
198198 }
199199
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ if(!extension_loaded('cairo')) die('skip - Cairo extension not available');
66?>
77--FILE--
88<?php
9- $ surface = new Cairo \Surface \Image (CAIRO_FORMAT_ARGB32 , 50 , 50 );
9+ $ surface = new Cairo \Surface \Image (Cairo \ Surface \ImageFormat:: ARGB32 , 50 , 50 );
1010var_dump ($ surface );
1111
1212$ context = new Cairo \Context ($ surface );
@@ -43,4 +43,4 @@ object(Cairo\Context)#%d (0) {
4343}
4444Cairo\Context::__construct() expects exactly 1 parameter, 0 given
4545Cairo\Context::__construct() expects exactly 1 parameter, 2 given
46- Cairo\Context::__construct() expects parameter 1 to be Cairo\Surface, integer given
46+ Argument 1 passed to Cairo\Context::__construct() must be an instance of Cairo\Surface, int given
You can’t perform that action at this time.
0 commit comments