rfc:consistent_function_names

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
rfc:consistent_function_names [2015/03/07 00:40]
yohgaki
rfc:consistent_function_names [2017/09/22 13:28] (current)
Line 649: Line 649:
   * file_stat <- stat (IEEE)   * file_stat <- stat (IEEE)
   * **file_stat_clear_cache** <- clearstatcache   * **file_stat_clear_cache** <- clearstatcache
 +
 +  * **file_move_uploaded** <- move_upload_file
  
   * **file_delete** <- unlink (There is dummy "​delete()"​ function entry for unlink(). Unlink is a directory operation in fact, but made it as file_delete(). There will be dir_delete())   * **file_delete** <- unlink (There is dummy "​delete()"​ function entry for unlink(). Unlink is a directory operation in fact, but made it as file_delete(). There will be dir_delete())
Line 803: Line 805:
  
   * Use of namespace to clean up global namespace at all.   * Use of namespace to clean up global namespace at all.
-  * New APIs that replace old APIs. 
-  * Parameter order inconsistency. 
   * Return type inconsistency.   * Return type inconsistency.
   * Constant name inconsistency.   * Constant name inconsistency.
Line 852: Line 852:
   * http://​php.net/​manual/​en/​ref.classobj.php   * http://​php.net/​manual/​en/​ref.classobj.php
   * __autoload — Attempt to load undefined class   * __autoload — Attempt to load undefined class
-  ​* call_user_method_array — Call a user method given with an array of parameters [deprecated] +  * class_alias — Creates an alias for a class
-  * call_user_method — Call a user method on an specific object [deprecated] +
-  ​* class_alias — Creates an alias for a class (Aliases should not be listed, but they should be searchable)+
   * class_called — the "Late Static Binding"​ class name   * class_called — the "Late Static Binding"​ class name
   * class_declared — Returns an array with the name of the defined classes   * class_declared — Returns an array with the name of the defined classes
Line 871: Line 869:
   * trait_declared — Returns an array of all declared traits   * trait_declared — Returns an array of all declared traits
   * trait_exists — Checks if the trait exists   * trait_exists — Checks if the trait exists
 +
 +  * call_user_method_array — Call a user method given with an array of parameters [deprecated]
 +  * call_user_method — Call a user method on an specific object [deprecated]
  
  
Line 883: Line 884:
   * gc_enable — Activates the circular reference collector   * gc_enable — Activates the circular reference collector
   * gc_enabled — Returns status of the circular reference collector   * gc_enabled — Returns status of the circular reference collector
-  * get_magic_quotes_gpc — Gets the current configuration setting of magic_quotes_gpc [Deprecated] 
-  * get_magic_quotes_runtime — Gets the current active configuration setting of magic_quotes_runtime [Deprecated] 
   * get_env — Gets the value of an environment variable   * get_env — Gets the value of an environment variable
   * get_last_mod — Gets time of last page modification   * get_last_mod — Gets time of last page modification
Line 893: Line 892:
   * get_opt — Gets options from the command line argument list   * get_opt — Gets options from the command line argument list
   * get_rusage — Gets the current resource usages   * get_rusage — Gets the current resource usages
-  * ini_alter — Alias of ini_set (Aliases should not be listed, but they should be searchable) 
   * ini_get_all — Gets all configuration options   * ini_get_all — Gets all configuration options
   * ini_get — Gets the value of a configuration option   * ini_get — Gets the value of a configuration option
   * ini_restore — Restores the value of a configuration option   * ini_restore — Restores the value of a configuration option
   * ini_set — Sets the value of a configuration option   * ini_set — Sets the value of a configuration option
-  * magic_quotes_runtime — Alias of set_magic_quotes_runtime [Deprecated] (Aliases should not be listed, but they should be searchable) 
   * main — Dummy for main   * main — Dummy for main
   * memory_get_peak_usage — Returns the peak of memory allocated by PHP   * memory_get_peak_usage — Returns the peak of memory allocated by PHP
Line 918: Line 915:
   * php_ini_scanned_files — Return a list of .ini files parsed from the additional ini dir   * php_ini_scanned_files — Return a list of .ini files parsed from the additional ini dir
   * php_logo_guid — Gets the logo guid   * php_logo_guid — Gets the logo guid
-  * php_required_files — Alias of get_included_files (Aliases should not be listed, but they should be searchable) 
   * php_sapi_name — Returns the type of interface between web server and PHP   * php_sapi_name — Returns the type of interface between web server and PHP
   * php_time_limit — Limits the maximum execution time   * php_time_limit — Limits the maximum execution time
Line 924: Line 920:
   * php_version — Gets the current PHP version   * php_version — Gets the current PHP version
   * put_env — Sets the value of an environment variable   * put_env — Sets the value of an environment variable
-  * set_magic_quotes_runtime — Sets the current active configuration setting of magic_quotes_runtime [Deprecated] 
   * sys_get_temp_dir — Returns directory path used for temporary files   * sys_get_temp_dir — Returns directory path used for temporary files
   * version_compare — Compares two "​PHP-standardized"​ version number strings   * version_compare — Compares two "​PHP-standardized"​ version number strings
Line 930: Line 925:
   * zend_thread_id — Returns a unique identifier for the current thread   * zend_thread_id — Returns a unique identifier for the current thread
   * zend_version — Gets the version of the current Zend engine   * zend_version — Gets the version of the current Zend engine
 +
 +  * get_magic_quotes_gpc — Gets the current configuration setting of magic_quotes_gpc [Deprecated]
 +  * get_magic_quotes_runtime — Gets the current active configuration setting of magic_quotes_runtime [Deprecated]
 +  * magic_quotes_runtime — Alias of set_magic_quotes_runtime [Deprecated] (Aliases should not be listed, but they should be searchable)
 +  * set_magic_quotes_runtime — Sets the current active configuration setting of magic_quotes_runtime [Deprecated]
 +
 +  * ini_alter — Alias of ini_set (Aliases should not be listed, but they should be searchable)
 +  * php_required_files — Alias of get_included_files (Aliases should not be listed, but they should be searchable)
 +
  
 ====Arrays==== ====Arrays====
Line 1006: Line 1010:
   * list — Assign variables as if they were an array   * list — Assign variables as if they were an array
   * next — Advance the internal array pointer of an array   * next — Advance the internal array pointer of an array
-  * pos — Alias of current (Aliases will not be listed) 
   * prev — Rewind the internal array pointer   * prev — Rewind the internal array pointer
   * reset — Set the internal pointer of an array to its first element   * reset — Set the internal pointer of an array to its first element
 +
 +  * pos — Alias of current (Aliases will not be listed)
   * sizeof — Alias of count  (Aliases will not be listed)   * sizeof — Alias of count  (Aliases will not be listed)
  
Line 1015: Line 1020:
   * bool_val — Get the boolean value of a variable   * bool_val — Get the boolean value of a variable
   * debug_zval_dump — Dumps a string representation of an internal zend value to output   * debug_zval_dump — Dumps a string representation of an internal zend value to output
-  * double_val — Alias of floatval (Aliases should not be listed, but they should be searchable) 
   * empty — Determine whether a variable is empty   * empty — Determine whether a variable is empty
   * float_val — Get float value of a variable   * float_val — Get float value of a variable
Line 1026: Line 1030:
   * is_float — Finds whether the type of a variable is float   * is_float — Finds whether the type of a variable is float
   * is_int — Find whether the type of a variable is integer   * is_int — Find whether the type of a variable is integer
-  * is_integer — Alias of is_int (Aliases should not be listed, but they should be searchable) 
-  * is_long — Alias of is_int (Aliases should not be listed, but they should be searchable) 
   * is_null — Finds whether a variable is NULL   * is_null — Finds whether a variable is NULL
   * is_numeric — Finds whether a variable is a number or a numeric string   * is_numeric — Finds whether a variable is a number or a numeric string
   * is_object — Finds whether a variable is an object   * is_object — Finds whether a variable is an object
-  * is_real — Alias of is_float (Aliases should not be listed, but they should be searchable) 
   * is_resource — Finds whether a variable is a resource   * is_resource — Finds whether a variable is a resource
   * is_scalar — Finds whether a variable is a scalar   * is_scalar — Finds whether a variable is a scalar
Line 1047: Line 1048:
   * var_dump — Dumps information about a variable   * var_dump — Dumps information about a variable
   * var_export — Outputs or returns a parsable string representation of a variable   * var_export — Outputs or returns a parsable string representation of a variable
 +
 +  * double_val — Alias of floatval (Aliases should not be listed, but they should be searchable)
 +  * is_integer — Alias of is_int (Aliases should not be listed, but they should be searchable)
 +  * is_long — Alias of is_int (Aliases should not be listed, but they should be searchable)
 +  * is_real — Alias of is_float (Aliases should not be listed, but they should be searchable)
  
 ====Program execution Functions==== ====Program execution Functions====
Line 1097: Line 1103:
   * sprintf — Return a formatted string   * sprintf — Return a formatted string
   * str_case_cmp — Binary safe case-insensitive string comparison   * str_case_cmp — Binary safe case-insensitive string comparison
-  * str_chr — Alias of strstr (Aliases should not be listed, but they should be searchable) 
-  * str_chop — Alias of str_rtrim (Aliases should not be listed, but they should be searchable) 
   * str_chunk_split — Split a string into smaller chunks   * str_chunk_split — Split a string into smaller chunks
   * str_cmp — Binary safe string comparison   * str_cmp — Binary safe string comparison
Line 1112: Line 1116:
   * str_ireplace — Case-insensitive version of str_replace.   * str_ireplace — Case-insensitive version of str_replace.
   * str_istr — Case-insensitive strstr   * str_istr — Case-insensitive strstr
-  * str_join — Alias of implode (Aliases should not be listed, but they should be searchable) 
   * str_lc_first — Make a string'​s first character lowercase   * str_lc_first — Make a string'​s first character lowercase
   * str_len — Get string length   * str_len — Get string length
Line 1163: Line 1166:
   * vprintf — Output a formatted string   * vprintf — Output a formatted string
   * vsprintf — Return a formatted string   * vsprintf — Return a formatted string
 +
 +  * str_chr — Alias of strstr (Aliases should not be listed, but they should be searchable)
 +  * str_chop — Alias of str_rtrim (Aliases should not be listed, but they should be searchable)
 +  * str_join — Alias of implode (Aliases should not be listed, but they should be searchable)
 +
  
 ====Filesystem Functions==== ====Filesystem Functions====
Line 1174: Line 1182:
   * disk_free_space — Returns available space on filesystem or disk partition   * disk_free_space — Returns available space on filesystem or disk partition
   * disk_total_space — Returns the total size of a filesystem or disk partition   * disk_total_space — Returns the total size of a filesystem or disk partition
-  * diskfreespace — Alias of disk_free_space (Aliases should not be listed, but they should be searchable) 
   * fclose — Closes an open file pointer   * fclose — Closes an open file pointer
   * feof — Tests for end-of-file on a file pointer   * feof — Tests for end-of-file on a file pointer
Line 1194: Line 1201:
   * file_inode — Gets file inode   * file_inode — Gets file inode
   * file_mtime — Gets file modification time   * file_mtime — Gets file modification time
 +  * file_move_uploaded — Moves an uploaded file to a new location
   * file_owner — Gets file owner   * file_owner — Gets file owner
   * file_perms — Gets file permissions   * file_perms — Gets file permissions
Line 1200: Line 1208:
   * file_passthru — Output all remaining data on a file pointer   * file_passthru — Output all remaining data on a file pointer
   * file_put_csv — Format line as CSV and write to file pointer   * file_put_csv — Format line as CSV and write to file pointer
-  * file_puts — Alias of fwrite (Aliases should not be listed, but they should be searchable) 
   * file_size — Gets file size   * file_size — Gets file size
   * file_temp_name — Create file with unique file name   * file_temp_name — Create file with unique file name
Line 1225: Line 1232:
   * is_uploaded_file — Tells whether the file was uploaded via HTTP POST   * is_uploaded_file — Tells whether the file was uploaded via HTTP POST
   * is_writable — Tells whether the filename is writable   * is_writable — Tells whether the filename is writable
-  * is_writeable — Alias of is_writable (Aliases should not be listed, but they should be searchable) 
   * link_chgrp — Changes group ownership of symlink   * link_chgrp — Changes group ownership of symlink
   * link_chown — Changes user ownership of symlink   * link_chown — Changes user ownership of symlink
Line 1233: Line 1239:
   * link_symbolic — Creates a symbolic link   * link_symbolic — Creates a symbolic link
   * link — Create a hard link   * link — Create a hard link
-  * move_uploaded_file — Moves an uploaded file to a new location 
   * parse_ini_file — Parse a configuration file   * parse_ini_file — Parse a configuration file
   * parse_ini_string — Parse a configuration string (This is string function. Or make them ini function? ini_string()/​ini_file() )   * parse_ini_string — Parse a configuration string (This is string function. Or make them ini function? ini_string()/​ini_file() )
Line 1244: Line 1249:
   * realpath_cache_size — Get realpath cache size   * realpath_cache_size — Get realpath cache size
   * realpath — Returns canonicalized absolute pathname   * realpath — Returns canonicalized absolute pathname
-  * set_file_buffer — Alias of stream_set_write_buffer (This is kind of deprecated function. User should use stream function) 
   * stat_clear_cache — Clears file status cache   * stat_clear_cache — Clears file status cache
   * stat — Gives information about a file   * stat — Gives information about a file
  
 +  * set_file_buffer — Alias of stream_set_write_buffer (This is kind of deprecated function. User should use stream function)
 +  * diskfreespace — Alias of disk_free_space (Aliases should not be listed, but they should be searchable)
 +  * is_writeable — Alias of is_writable (Aliases should not be listed, but they should be searchable)
 +  * fputs — Alias of fwrite (Aliases should not be listed, but they should be searchable)
  
  
rfc/consistent_function_names.txt · Last modified: 2017/09/22 13:28 (external edit)