phplist

NOTE:: Before reporting an issue, make sure you are running the latest version, currently 3.3.1


View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006419phplist applicationAll Otherpublic18-05-06 23:1718-02-08 14:06
Reporterhakan 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version2.10.2 
Target Version2.10.7Fixed in Version2.10.4 
Summary0006419: Short tags are not supported on everywhere
DescriptionHi,

the files:
tree lists/admin/commonlib/
lists/admin/commonlib/
|-- lib
| |-- accesscheck.php
| |-- errorlib.php
| |-- interfacelib.php
| |-- magic_quotes.php
| |-- oldphp_vars.php
| `-- userlib.php
`-- pages
    |-- attributes.php
    |-- dbcheck.php
    |-- importcsv.php
    |-- user.php
    |-- usermgt.php
    `-- users.php

have short open tags "<?" instead of "<?php".

For better portability "<?php" should be used, because short tags are not supported on every installation of PHP.

See also:
http://www.php.net/manual/en/language.basic-syntax.php [^]

Regards, Hakan
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to 0003721closed phplist 2.10.x 
related to 0001175resolvedmichiel Use of short tags 
related to 0006682resolved PHP Short Tags 

-  Notes
(0013807)
michiel (manager)
19-05-06 02:16

you can use "scripts/short2long.sh" to make the conversion. Sometimes I forget to do that.
(0014177)
hakan (reporter)
06-06-06 12:30

Why not skip the usage of short open tags and replace all "<?" with "<?php"?
It would make PHPlist more portable.
(0029411)
user1822
16-07-07 20:22

Replaced all <? by <?php
Replaced all <?= by <?php echo


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker