php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #51927 Missing documentation of function
Submitted: 2010-05-27 10:35 UTC Modified: 2010-05-27 10:42 UTC
From: jonaso at web dot de Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jonaso at web dot de
New email:
PHP Version: OS:

 

 [2010-05-27 10:35 UTC] jonaso at web dot de
Description:
------------
In the wordpress code, I found a function called absint().
It is not documented in the php manual.

Test script:
---------------
function add_image_size( $name, $width = 0, $height = 0, $crop = FALSE ) {
	global $_wp_additional_image_sizes;
	$_wp_additional_image_sizes[$name] = array( 'width' => absint( $width ), 'height' => absint( $height ), 'crop' => !!$crop );
}


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-27 10:38 UTC] aharvey@php.net
-Status: Open +Status: Bogus
 [2010-05-27 10:38 UTC] aharvey@php.net
absint is not a built-in PHP function.
 [2010-05-27 10:42 UTC] salathe@php.net
The absint function is defined in the Wordpress code (see wp-
includes/functions.php).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 12:01:29 2024 UTC