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

Phalcon 2 compilation warnings

Hi,

I get following warnings during compilation of phalcon 2:

[email protected]:~/Code/cphalcon# zephir build Warning: Class "APCIterator" does not exist at compile time in /root/Code/cphalcon/phalcon/cache/backend/apc.zep on 224 [nonexistent-class]

   apc = new \APCIterator("user", prefixPattern);
------------------------------------------------^

Warning: Function "imagecreatefromxbm" does not exist at compile time in /root/Code/cphalcon/phalcon/image/adapter/gd.zep on 93 [nonexistent-function]

     let this->_image = imagecreatefromxbm(this->_file);
-------------------------------------------------------^

Warning: Function "imagescale" does not exist at compile time in /root/Code/cphalcon/phalcon/image/adapter/gd.zep on 158 [nonexistent-function]

   let image = imagescale(this->_image, width, height);
------------------------------------------------------^

Warning: Function "imagecrop" does not exist at compile time in /root/Code/cphalcon/phalcon/image/adapter/gd.zep on 180 [nonexistent-function]

   let image = imagecrop(this->_image, rect);
--------------------------------------------^

Warning: Function "imageflip" does not exist at compile time in /root/Code/cphalcon/phalcon/image/adapter/gd.zep on 238 [nonexistent-function]

    imageflip(this->_image, IMG_FLIP_HORIZONTAL);
------------------------------------------------^

Warning: Constant 'IMG_FLIP_HORIZONTAL' does not exist at compile time in /root/Code/cphalcon/phalcon/image/adapter/gd.zep on 238 [nonexistent-constant]

    imageflip(this->_image, IMG_FLIP_HORIZONTAL);
-----------------------------------------------^

Warning: Function "imageflip" does not exist at compile time in /root/Code/cphalcon/phalcon/image/adapter/gd.zep on 240 [nonexistent-function]

    imageflip(this->_image, IMG_FLIP_VERTICAL);
----------------------------------------------^

Warning: Constant 'IMG_FLIP_VERTICAL' does not exist at compile time in /root/Code/cphalcon/phalcon/image/adapter/gd.zep on 240 [nonexistent-constant]

    imageflip(this->_image, IMG_FLIP_VERTICAL);
---------------------------------------------^

Warning: Function "imagelayereffect" does not exist at compile time in /root/Code/cphalcon/phalcon/image/adapter/gd.zep on 323 [nonexistent-function]

   imagelayereffect(overlay, IMG_EFFECT_OVERLAY);
------------------------------------------------^

Warning: Constant 'IMG_EFFECT_OVERLAY' does not exist at compile time in /root/Code/cphalcon/phalcon/image/adapter/gd.zep on 323 [nonexistent-constant]

   imagelayereffect(overlay, IMG_EFFECT_OVERLAY);
-----------------------------------------------^

Warning: Function "imagexbm" does not exist at compile time in /root/Code/cphalcon/phalcon/image/adapter/gd.zep on 529 [nonexistent-function]

   imagexbm(this->_image, file);
-------------------------------^

Warning: Function "imagexbm" does not exist at compile time in /root/Code/cphalcon/phalcon/image/adapter/gd.zep on 556 [nonexistent-function]

   imagexbm(this->_image, null);
-------------------------------^

Warning: Function "phalcon_orm_singlequotes" does not exist at compile time in /root/Code/cphalcon/phalcon/mvc/model/query.zep on 513 [nonexistent-function]

       let escapedValue = phalcon_orm_singlequotes(value);
---------------------------------------------------------^

Warning: Possible attempt to append elements on a non-array dynamic variable in /root/Code/cphalcon/phalcon/mvc/router.zep on 110 [non-array-append]

   ]);
-----^

Warning: Possible attempt to append elements on a non-array dynamic variable in /root/Code/cphalcon/phalcon/mvc/router.zep on 116 [non-array-append]

   ]);
-----^

Any pointers on how to fix them? I have APC and GD library installed in my debian VM.

Thanks,

Jeroen



16.4k

I always ignore the APCIterator notice, but I have never gotten the GD error, can you make sure GD is loading?

GD is available in the modules:

[email protected]:/tmp# php -m
[PHP Modules]
alba
apc
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
imagick
imap
intl
json
libxml
mbstring
mcrypt
memcache
mhash
ming
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
phalcon
Phar
posix
ps
pspell
recode
Reflection
session
shmop
SimpleXML
snmp
soap
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
wddx
xdebug
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib

[Zend Modules]
Xdebug

Everything is working so far, I got zephir up and running, so the gd warning doesn't seem to be giving much issues.