}
/* }}} */
-/* {{{ proto int mysql_connect([string hostname[:port][:/path/to/socket]] [, string username] [, string password])
+/* {{{ proto resource mysql_connect([string hostname[:port][:/path/to/socket]] [, string username] [, string password])
Open a connection to a MySQL Server */
PHP_FUNCTION(mysql_connect)
{
}
/* }}} */
-/* {{{ proto int mysql_pconnect([string hostname[:port][:/path/to/socket]] [, string username] [, string password])
+/* {{{ proto resource mysql_pconnect([string hostname[:port][:/path/to/socket]] [, string username] [, string password])
Open a persistent connection to a MySQL Server */
PHP_FUNCTION(mysql_pconnect)
{
}
/* }}} */
-/* {{{ proto int mysql_close([int link_identifier])
+/* {{{ proto bool mysql_close([int link_identifier])
Close a MySQL connection */
PHP_FUNCTION(mysql_close)
{
}
/* }}} */
-/* {{{ proto int mysql_select_db(string database_name [, int link_identifier])
+/* {{{ proto bool mysql_select_db(string database_name [, int link_identifier])
Select a MySQL database */
PHP_FUNCTION(mysql_select_db)
{
#endif
#if MYSQL_VERSION_ID < 40000
-/* {{{ proto int mysql_create_db(string database_name [, int link_identifier])
+/* {{{ proto bool mysql_create_db(string database_name [, int link_identifier])
Create a MySQL database */
PHP_FUNCTION(mysql_create_db)
{
}
/* }}} */
-/* {{{ proto int mysql_drop_db(string database_name [, int link_identifier])
+/* {{{ proto bool mysql_drop_db(string database_name [, int link_identifier])
Drop (delete) a MySQL database */
PHP_FUNCTION(mysql_drop_db)
{
}
/* }}} */
-/* {{{ proto int mysql_query(string query [, int link_identifier] [, int result_mode])
+/* {{{ proto resource mysql_query(string query [, int link_identifier] [, int result_mode])
Send an SQL query to MySQL */
PHP_FUNCTION(mysql_query)
{
/* }}} */
-/* {{{ proto int mysql_unbuffered_query(string query [, int link_identifier] [, int result_mode])
+/* {{{ proto resource mysql_unbuffered_query(string query [, int link_identifier] [, int result_mode])
Send an SQL query to MySQL, without fetching and buffering the result rows */
PHP_FUNCTION(mysql_unbuffered_query)
{
/* }}} */
-/* {{{ proto int mysql_db_query(string database_name, string query [, int link_identifier])
+/* {{{ proto resource mysql_db_query(string database_name, string query [, int link_identifier])
Send an SQL query to MySQL */
PHP_FUNCTION(mysql_db_query)
{
/* }}} */
-/* {{{ proto int mysql_list_dbs([int link_identifier])
+/* {{{ proto resource mysql_list_dbs([int link_identifier])
List databases available on a MySQL server */
PHP_FUNCTION(mysql_list_dbs)
{
/* }}} */
-/* {{{ proto int mysql_list_tables(string database_name [, int link_identifier])
+/* {{{ proto resource mysql_list_tables(string database_name [, int link_identifier])
List tables in a MySQL database */
PHP_FUNCTION(mysql_list_tables)
{
/* }}} */
-/* {{{ proto int mysql_list_fields(string database_name, string table_name [, int link_identifier])
+/* {{{ proto resource mysql_list_fields(string database_name, string table_name [, int link_identifier])
List MySQL result fields */
PHP_FUNCTION(mysql_list_fields)
{
/* }}} */
-/* {{{ proto int mysql_result(int result, int row [, mixed field])
+/* {{{ proto mixed mysql_result(int result, int row [, mixed field])
Get result data */
PHP_FUNCTION(mysql_result)
{
ZEND_FETCH_RESOURCE(mysql_result, MYSQL_RES *, result, -1, "MySQL result", le_result);
/* conversion from int64 to long happing here */
- Z_LVAL_P(return_value) = (long)mysql_num_rows(mysql_result);
+ Z_LVAL_P(return_value) = (long) mysql_num_rows(mysql_result);
Z_TYPE_P(return_value) = IS_LONG;
}
/* }}} */
}
/* }}} */
-/* {{{ proto int mysql_data_seek(int result, int row_number)
+/* {{{ proto bool mysql_data_seek(int result, int row_number)
Move internal result pointer */
PHP_FUNCTION(mysql_data_seek)
{
/* }}} */
-/* {{{ proto int mysql_field_seek(int result, int field_offset)
+/* {{{ proto bool mysql_field_seek(int result, int field_offset)
Set result pointer to a specific field offset */
PHP_FUNCTION(mysql_field_seek)
{
/* }}} */
-/* {{{ proto int mysql_free_result(int result)
+/* {{{ proto bool mysql_free_result(int result)
Free result memory */
PHP_FUNCTION(mysql_free_result)
{
REGISTER_LONG_CONSTANT("SIGPWR", (long) SIGPWR, CONST_CS | CONST_PERSISTENT);
#endif
REGISTER_LONG_CONSTANT("SIGSYS", (long) SIGSYS, CONST_CS | CONST_PERSISTENT);
+ REGISTER_LONG_CONSTANT("SIGBABY", (long) SIGSYS, CONST_CS | CONST_PERSISTENT);
}
static void php_pcntl_init_globals(zend_pcntl_globals *pcntl_globals)
php_info_print_table_end();
}
-/* {{{ proto long pcntl_fork()
+/* {{{ proto int pcntl_fork()
Forks the currently running process following the same behavior as the UNIX fork() system call*/
PHP_FUNCTION(pcntl_fork)
{
}
/* }}} */
-/* {{{ proto long pcntl_waitpid(long pid, long status, long options)
+/* {{{ proto int pcntl_waitpid(long pid, long status, long options)
Waits on or returns the status of a forked child as defined by the waitpid() system call */
PHP_FUNCTION(pcntl_waitpid)
{
}
/* }}} */
-/* {{{ proto long pcntl_wexitstatus(long status)
+/* {{{ proto int pcntl_wexitstatus(long status)
Returns the status code of a child's exit */
PHP_FUNCTION(pcntl_wexitstatus)
{
}
/* }}} */
-/* {{{ proto long pcntl_wtermsig(long status)
+/* {{{ proto int pcntl_wtermsig(long status)
Returns the number of the signal that terminated the process who's status code is passed */
PHP_FUNCTION(pcntl_wtermsig)
{
}
/* }}} */
-/* {{{ proto long pcntl_wstopsig(long status)
+/* {{{ proto int pcntl_wstopsig(long status)
Returns the number of the signal that caused the process to stop who's status code is passed */
PHP_FUNCTION(pcntl_wstopsig)
{