We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

The imagick text method does not display text watermarking.(bug)

phalcon version 1.3.4 Reason: cphalcon/ext/image/adapter/imagic.c on 812~816 line.

790 PHP_METHOD(PhalconImageAdapterImagick, _text){
`
`
`
812 if (!offset_y) {  
813     PHALCON_INIT_VAR(offset_y);     
814 } else { 
815     PHALCON_CPY_WRT_CTOR(offset_x, *ofs_y); 
816 }
`
`
`
1037 }

Correct:

790 PHP_METHOD(PhalconImageAdapterImagick, _text){
`
`
`
812 if (!ofs_y) {  
813     PHALCON_INIT_VAR(offset_y);     
814 } else { 
815     PHALCON_CPY_WRT_CTOR(offset_y, *ofs_y); 
816 }
`
`
`
1037 }


523

cphalcon/build/64bits/phalcon.c on 57387~57391

57387   if (!offset_y) {
57388       PHALCON_INIT_VAR(offset_y);
57389   } else {
57390       PHALCON_CPY_WRT_CTOR(offset_x, *ofs_y);
57391   }

Modify the code so that it resembles the following code sample。

57387   if (!ofs_y) {
57388       PHALCON_INIT_VAR(offset_y);
57389   } else {
57390       PHALCON_CPY_WRT_CTOR(offset_y, *ofs_y);
57391   }