PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_Template_Flexy » Bug #7926

__autoload() attempts to load non-existing Flexy classes

Details

Submitted2006-06-16 14:52 UTC
Fromtorgny at xorcode dot com
StatusBogus
PackageHTML_Template_Flexy
PHP Version5.0.4
OSFedora Core 4
Roadmaps(Not assigned)

Comments

[2006-06-16 14:52 UTC] torgny at xorcode dot com

Description:
------------
I have the following extensions loaded: yp, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SPL, sockets, SimpleXML, shmop, session, pspell, posix, pcre, mime_magic, iconv, gmp, gettext, ftp, exif, dio, dbx, curl, ctype, calendar, bz2, zlib, openssl, libxml, apache2handler, bcmath, dom, gd, mysql, mysqli, tidy, xsl, Zend Optimizer, Zend Download Server, Zend Platform, Zend Debugger

I have the default PHP 5.0.4 that comes with Fedora Core 4, RPM standard php.ini, and everything else is vanilla.

When I run HTML_Template_Flexy and have defined __autoload(), I get requests for the following files:

HTML_Template_Flexy_Token_Doctype
HTML_Template_Flexy_Token_Name
HTML_Template_Flexy_Token_Literal
HTML_Template_Flexy_Token_WhiteSpace
HTML_Template_Flexy_Token_CloseTag
HTML_Template_Flexy_Token_TextSimple

Since these do not exist anywhere in the HTML_Template_Flexy package, I think it would be prudent to either check for them with file_exists() before trying to include them. It seems that this is a non-finished addition for future use, since the classes doesn't exist yet.

I also get the following notice messages from Flexy when compiling a template:

Undefined Index:
ALT
TITLE
FLEXY:IGNORE
HREF
SRC
FLEXY:DYNAMIC
FLEXY:IGNOREONLY
FLEXY:FOREACH
FLEXY:IF

These are all generated from pear/HTML/Template/Flexy/Token/Tag.php on line 146.

My HTML_Template_Flexy section in my ini looks like this:

[HTML_Template_Flexy]
templateDir = DP_PATH_TPL
compileDir = DP_PATH_TMP
locale = en
compiler = Flexy
allowPHP = false
numberFormat = ",2,'.',',"
privates = false
globals = false
globalfunctions = false
nonHTML = false
flexyIgnore = false
strict = true
fatalError = 1 ;HTML_TEMPLATE_FLEXY_ERROR_RETURN

[2006-06-16 17:25 UTC] torgny at xorcode dot com

Updated OS string.