Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 485a564

Browse filesBrowse files
committed
Fix symfony#16 - gzopen() / gzopen64() - 32 bit builds of Ubuntu 14.04
1 parent 90c5126 commit 485a564
Copy full SHA for 485a564

1 file changed

+14Lines changed: 14 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/Php56/bootstrap.php‎

Copy file name to clipboardExpand all lines: src/Php56/bootstrap.php
+14Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,18 @@ function hash_equals($knownString, $userInput) { return p\Php56::hash_equals($kn
2121

2222
function ldap_escape($subject, $ignore = '', $flags = 0) { return p\Php56::ldap_escape($subject, $ignore, $flags); }
2323
}
24+
25+
if (50509 === PHP_VERSION_ID && 4 === PHP_INT_SIZE) {
26+
// Missing functions in PHP 5.5.9 - affects 32 bit builds of Ubuntu 14.04LTS
27+
// See https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1315888
28+
if (!function_exists('gzopen') && function_exists('gzopen64')) {
29+
function gzopen($filename, $mode, $use_include_path = 0) { return gzopen64($filename, $mode, $use_include_path); }
30+
}
31+
if (!function_exists('gzseek') && function_exists('gzseek64')) {
32+
function gzseek($zp, $offset, $whence = SEEK_SET) { return gzseek64($zp, $offset, $whence); }
33+
}
34+
if (!function_exists('gztell') && function_exists('gztell64')) {
35+
function gztell($zp) { return gztell64($zp); }
36+
}
37+
}
2438
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.