Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pathinfo на различных платформах #56

Closed
beautyfree opened this issue Dec 29, 2011 · 1 comment
Closed

pathinfo на различных платформах #56

beautyfree opened this issue Dec 29, 2011 · 1 comment

Comments

@beautyfree
Copy link
Contributor

Функция pathinfo поразному ведет себя на платформах Windows/Linux

Array
(
[dirname] => /www/psychicblast/images/1
[basename] => my three girlfriends.jpg
[extension] => jpg
)

Array
(
[dirname] => /www/htdocs
[basename] => index.html
[extension] => html
[filename] => index
)

Из за этого у многих не загружаются изображения в топики и не отображаются загруженные изображения, т.к с использованием этой функции генерируются пути к изображениям. Хотелось бы обратить на данный момент внимание и привлечь к обсуждения. Проблема встретилась лично у меня при использовании ls на Windows.

Так же хочу отметить что версия php достаточно старая - 5.1.6. Поэтому стоит либо указать конкретно версию
http://livestreetcms.com/about/ , а не PHP5 или вставить проверку версии в инсталятор. Надеюсь проблему поставил, что то решим.

Для примера:
https://github.com/livestreet/livestreet/blob/master/classes/modules/topic/entity/TopicPhoto.entity.class.php : 27

@1d10t
Copy link
Contributor

1d10t commented Dec 30, 2011

не от платформы, а от версии пхп зависит.
5.2.0 Добавлена константа PATHINFO_FILENAME

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants