Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
2929d19c
Commit
2929d19c
authored
11 years ago
by
Andreas Fischer
Browse files
Options
Downloads
Patches
Plain Diff
Document exceptions thrown by \OC\LargeFileHelper.
parent
ea246d05
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/private/largefilehelper.php
+7
-2
7 additions, 2 deletions
lib/private/largefilehelper.php
with
7 additions
and
2 deletions
lib/private/largefilehelper.php
+
7
−
2
View file @
2929d19c
...
...
@@ -25,8 +25,10 @@ class LargeFileHelper {
const
POW_2_53_MINUS_1
=
'9007199254740991'
;
/**
* @brief Constructor. Checks whether our assumptions hold on the platform
* we are on, throws an exception if they do not hold.
* @brief Checks whether our assumptions hold on the PHP platform we are on.
*
* @throws \RunTimeException if our assumptions do not hold on the current
* PHP platform.
*/
public
function
__construct
()
{
$pow_2_53
=
floatval
(
self
::
POW_2_53_MINUS_1
)
+
1.0
;
...
...
@@ -43,6 +45,9 @@ class LargeFileHelper {
*
* @param int|float|string $number Number containing unsigned integer data
*
* @throws \UnexpectedValueException if $number is not a float, not an int
* and not a base-10 string.
*
* @return string Unsigned integer base-10 string
*/
public
function
formatUnsignedInteger
(
$number
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment