Bug #67170
closed
CLI extbase class loading more case sensitive than scheduler task class loading?
Added by Henri Nathanson over 9 years ago.
Updated about 6 years ago.
Description
GeneralUtility::makeInstance('Vend\\Ext\\Domain\\Model\\MyClass')
should not load a class with name Myclass(lower case C!). Extbase command started on CLI throws indeed an error. Backend does not. Class is put in cache with correct lowercase. Afterwards the CLI execution does work, too.
- Status changed from New to Needs Feedback
Henri Nathanson wrote:
GeneralUtility::makeInstance('Vend\\Ext\\Domain\\Model\\MyClass')
should not load a class with name Myclass(lower case C!). Extbase command started on CLI throws indeed an error. Backend does not. Class is put in cache with correct lowercase. Afterwards the CLI execution does work, too.
In general backend and cli requests are equal
Please provide more information about your system.
- Which OS
- which filesystem?
- Does the extension use an ext_autoload.php file?
- how did you set up TYPO3? Did you use the optimize autoload map feature of composer?
///$ uname -a
Linux root210994 3.2.0-4-amd64 #1 SMP Debian 3.2.65-1+deb7u2 x86_64 GNU/Linux
///$ df -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
rootfs rootfs 895006760 170366236 679074612 21% /
udev devtmpfs 10240 0 10240 0% /dev
tmpfs tmpfs 2474300 192 2474108 1% /run
/dev/disk/by-uuid/7083ae7a-88a8-46b3-8d7e-9af18cbc7777 ext3 895006760 170366236 679074612 21% /
tmpfs tmpfs 5120 0 5120 0% /run/lock
tmpfs tmpfs 5148460 0 5148460 0% /run/shm
none prl_fs 4294967296 0 4294967296 0% /media/psf
///$ php -v ((same with apache))
PHP 5.5.24-1~dotdeb+wheezy.1 (cli) (built: Apr 22 2015 05:54:24)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2015, by Zend Technologies
The extension does not use an ext_autoload.php file. The behaviour could be observed in different setups(e.g. 6.2.x) so I guess its pretty common.
- Status changed from Needs Feedback to New
- Status changed from New to Needs Feedback
Is this issue still reproducible with recent TYPO3 versions like 8.7 or 9 ?
- Status changed from Needs Feedback to Closed
No feedback since the last 90 days => closing this issue.
If you think that this is the wrong decision or experience the issue again on recent TYPO3 versions like 8.7 or 9 and have more information about how to reproduce your problem, please reopen it or open a new issue with a reference to this one.
Thank you and best regards
Also available in: Atom
PDF