-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gallery: * Use constants to store default property values. * Normalize file handling, encapsulate charset conversions inside a class. * Use PCRE_UTF8 for regexps. * Use getimagesize() to retrieve image metadata. + Allow custom mask listing. + Allow clearing SendFile support. * Allow serving gallery from the root (empty sfPrefix). * (Windows) fix failing realpath() once again. + Allow setting index template globally. * Imagick paths use UTF-8 by default. + Caseless extension comparison. + Typehint arrays where possible. + Force use of UTF-8 for file IO under PHP 7.1. Index: - Use default extensions set for directory listing. - Check for images present in gallery, not files on disk. Gallery already skips unreadable/unsupported files.
- Loading branch information
Showing
5 changed files
with
174 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
------------------------------------------------------------------------ | ||
r668 | anrdaemon | 2017-06-22 00:12:01 +0300 (Чт, 22 июн 2017) | 2 lines | ||
|
||
+ Force use of UTF-8 for file IO under PHP 7.1. | ||
|
||
------------------------------------------------------------------------ | ||
r667 | anrdaemon | 2017-06-21 23:19:20 +0300 (Ср, 21 июн 2017) | 21 lines | ||
|
||
Gallery: | ||
* Use constants to store default property values. | ||
* Normalize file handling, encapsulate charset conversions inside a class. | ||
* Use PCRE_UTF8 for regexps. | ||
* Use getimagesize() to retrieve image metadata. | ||
+ Allow custom mask listing. | ||
+ Allow clearing SendFile support. | ||
* Allow serving gallery from the root (empty sfPrefix). | ||
* (Windows) fix failing realpath() once again. | ||
+ Allow setting index template globally. | ||
* Imagick paths use UTF-8 by default. | ||
+ Caseless extension comparison. | ||
+ Typehint arrays where possible. | ||
|
||
Index: | ||
- Use default extensions set for directory listing. | ||
- Check for images present in gallery, not files on disk. | ||
Gallery already skips unreadable/unsupported files. | ||
|
||
+ Bump base library version. | ||
|
||
------------------------------------------------------------------------ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
# MyLittleGallery | ||
|
||
A PHP class and templates to create a quick drop-in HTML gallery. | ||
|
||
## Throubleshooting the demo script | ||
|
||
### Unable to read files with non-ASCII names | ||
#### PHP before 7.1 | ||
Check that encoding of `config.php` file itself matches value of GALLERY_FS_ENCODING constant. | ||
#### PHP 7.1 | ||
`config.php` MUST be in `UTF-8`. | ||
For PHP 7.1 GALLERY_FS_ENCODING and `$fsEncoding` parameter of the constructor are ignored. | ||
|
||
Starting from PHP 7.1, [PHP uses internal_encoding to transcode file names](https://github.com/php/php-src/blob/e33ec61f9c1baa73bfe1b03b8c48a824ab2a867e/UPGRADING#L418). | ||
Before that, file IO under Windows (notably) done using "default" (so-called "ANSI") character set (i.e. CP1251 for Russian cyrillic). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.