#30679 [Fbk-Opn]: Segmentation fault by php_mysqli_fetch_into_hash
ID: 30679 User updated by: alex at netflex dot nl Reported By: alex at netflex dot nl -Status: Feedback +Status: Open Bug Type: MySQLi related Operating System: Fedora Core 2 (x86_64) PHP Version: 5.0.2 New Comment: Every mysqli query crash. The call to zend_parse_method_parameters at line 620 in ext/mysqli/mysqli.c will result into mysql_result = NULL. mysql_result get passed to zend_object_store_get_object and he will crash because the parameter must not be NULL. Previous Comments: [2004-11-10 18:12:58] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with ?php and ends with ?, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try avoid embedding huge scripts into the report. [2004-11-03 21:34:16] alex at netflex dot nl Description: exec a mysql query with mysqli results in Segmentation fault. Traceback: #0 zend_object_store_get_object (zobject=0x0) at /data/downloads/php-5.0.2/Zend/zend_objects_API.c:202 #1 0x0046e6dc in php_mysqli_fetch_into_hash (ht=2, return_value=0x8584f8, this_ptr=0x0, return_value_used=-1073759168, override_flags=0, into_object=0) at /data/downloads/php-5.0.2/ext/mysqli/mysqli.c:626 #2 0x004769ef in zif_mysqli_fetch_array (ht=0, return_value=0x7fbfffbc80, this_ptr=0x2, return_value_used=-1073759168) at /data/downloads/php-5.0.2/ext/mysqli/mysqli_nonapi.c:185 #3 0x0058b10c in zend_do_fcall_common_helper (execute_data=0x7fbfffcf60, opline=0x84bd00, op_array=0x848c50)at /data/downloads/php-5.0.2/Zend/zend_execute.c:2711 #4 0x0058b24a in zend_do_fcall_handler (execute_data=0x7fbfffcf60, opline=0x84bd00, op_array=0x848c50) at /data/downloads/php-5.0.2/Zend/zend_execute.c:2843 #5 0x00587da0 in execute (op_array=0x848c50) at /data/downloads/php-5.0.2/Zend/zend_execute.c:1400 #6 0x0058aeff in zend_do_fcall_common_helper (execute_data=0x7fbfffd210, opline=0x846980, op_array=0x842078) at /data/downloads/php-5.0.2/Zend/zend_execute.c:2740 #7 0x0058b1a1 in zend_do_fcall_by_name_handler (execute_data=0x0, opline=0x7fbfffbc80, op_array=0x2) at /data/downloads/php-5.0.2/Zend/zend_execute.c:2825 #8 0x00587da0 in execute (op_array=0x842078) at /data/downloads/php-5.0.2/Zend/zend_execute.c:1400 #9 0x0056af79 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /data/downloads/php-5.0.2/Zend/zend.c:1060 #10 0x005371df in php_execute_script (primary_file=0x7fb830) at /data/downloads/php-5.0.2/main/main.c:1629 #11 0x00593bd7 in main (argc=3, argv=0x7fb998) at /data/downloads/php-5.0.2/sapi/cli/php_cli.c:943 PHP (5.0.2): ./configure \ --libdir=/usr/local/lib64 \ --with-apxs2=/services/httpd/bin/apxs \ --with-mysql=/services/mysql \ --with-mysqli=/services/mysql/bin/mysql_config \ --enable-track-vars \ --with-openssl=/usr/local/ssl \ --enable-ftp --enable-sysvsem \ --enable-sysvshm \ --enable-sockets \ --with-gettext \ --with-mm=/usr/local/mm-1.3.0 \ --with-zlib \ --enable-so=shared \ --enable-pcntl \ --with-jpeg-dir=/usr/lib64 \ --with-png-dir=/usr/local \ --enable-gd \ --enable-debug--enable-maintainer-mode httpd (2.0.52): ./configure \ --prefix=/services/httpd \ --enable-module=rewrite \ --enable-module=info \ --enable-module=status \ --enable-module=log_agent \ --enable-module=log_referer \ --enable-module=so \ --enable-ssl=shared \ CPPFLAGS=-I/usr/kerberos/include \ LDFLAGS=-L/usr/kerberos/lib \ --enable-maintainer-mode mysql (4.1.1): ./configure \ --prefix=/services/mysql \ --enable-assembler \ --with-innodb \ --without-debug Reproduce code: --- $result = mysqli_query($conn, 'SELECT * FROM `dns_domains` WHERE `id` = ' . (int)$domainId) or die('MySQL: ' . mysqli_error($conn)); Expected result: no crash? Actual result: -- blank web page in the browser httpd error log: [Tue Nov 02 21:04:56 2004] [notice] child pid 1659 exit signal Segmentation fault (11) -- Edit this bug report at http://bugs.php.net/?id=30679edit=1
#30679 [NEW]: Segmentation fault by php_mysqli_fetch_into_hash
From: alex at netflex dot nl Operating system: Fedora Core 2 (x86_64) PHP version: 5.0.2 PHP Bug Type: MySQLi related Bug description: Segmentation fault by php_mysqli_fetch_into_hash Description: exec a mysql query with mysqli results in Segmentation fault. Traceback: #0 zend_object_store_get_object (zobject=0x0) at /data/downloads/php-5.0.2/Zend/zend_objects_API.c:202 #1 0x0046e6dc in php_mysqli_fetch_into_hash (ht=2, return_value=0x8584f8, this_ptr=0x0, return_value_used=-1073759168, override_flags=0, into_object=0) at /data/downloads/php-5.0.2/ext/mysqli/mysqli.c:626 #2 0x004769ef in zif_mysqli_fetch_array (ht=0, return_value=0x7fbfffbc80, this_ptr=0x2, return_value_used=-1073759168) at /data/downloads/php-5.0.2/ext/mysqli/mysqli_nonapi.c:185 #3 0x0058b10c in zend_do_fcall_common_helper (execute_data=0x7fbfffcf60, opline=0x84bd00, op_array=0x848c50)at /data/downloads/php-5.0.2/Zend/zend_execute.c:2711 #4 0x0058b24a in zend_do_fcall_handler (execute_data=0x7fbfffcf60, opline=0x84bd00, op_array=0x848c50) at /data/downloads/php-5.0.2/Zend/zend_execute.c:2843 #5 0x00587da0 in execute (op_array=0x848c50) at /data/downloads/php-5.0.2/Zend/zend_execute.c:1400 #6 0x0058aeff in zend_do_fcall_common_helper (execute_data=0x7fbfffd210, opline=0x846980, op_array=0x842078) at /data/downloads/php-5.0.2/Zend/zend_execute.c:2740 #7 0x0058b1a1 in zend_do_fcall_by_name_handler (execute_data=0x0, opline=0x7fbfffbc80, op_array=0x2) at /data/downloads/php-5.0.2/Zend/zend_execute.c:2825 #8 0x00587da0 in execute (op_array=0x842078) at /data/downloads/php-5.0.2/Zend/zend_execute.c:1400 #9 0x0056af79 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /data/downloads/php-5.0.2/Zend/zend.c:1060 #10 0x005371df in php_execute_script (primary_file=0x7fb830) at /data/downloads/php-5.0.2/main/main.c:1629 #11 0x00593bd7 in main (argc=3, argv=0x7fb998) at /data/downloads/php-5.0.2/sapi/cli/php_cli.c:943 PHP (5.0.2): ./configure \ --libdir=/usr/local/lib64 \ --with-apxs2=/services/httpd/bin/apxs \ --with-mysql=/services/mysql \ --with-mysqli=/services/mysql/bin/mysql_config \ --enable-track-vars \ --with-openssl=/usr/local/ssl \ --enable-ftp --enable-sysvsem \ --enable-sysvshm \ --enable-sockets \ --with-gettext \ --with-mm=/usr/local/mm-1.3.0 \ --with-zlib \ --enable-so=shared \ --enable-pcntl \ --with-jpeg-dir=/usr/lib64 \ --with-png-dir=/usr/local \ --enable-gd \ --enable-debug--enable-maintainer-mode httpd (2.0.52): ./configure \ --prefix=/services/httpd \ --enable-module=rewrite \ --enable-module=info \ --enable-module=status \ --enable-module=log_agent \ --enable-module=log_referer \ --enable-module=so \ --enable-ssl=shared \ CPPFLAGS=-I/usr/kerberos/include \ LDFLAGS=-L/usr/kerberos/lib \ --enable-maintainer-mode mysql (4.1.1): ./configure \ --prefix=/services/mysql \ --enable-assembler \ --with-innodb \ --without-debug Reproduce code: --- $result = mysqli_query($conn, 'SELECT * FROM `dns_domains` WHERE `id` = ' . (int)$domainId) or die('MySQL: ' . mysqli_error($conn)); Expected result: no crash? Actual result: -- blank web page in the browser httpd error log: [Tue Nov 02 21:04:56 2004] [notice] child pid 1659 exit signal Segmentation fault (11) -- Edit bug report at http://bugs.php.net/?id=30679edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30679r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30679r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30679r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=30679r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=30679r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30679r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30679r=needscript Try newer version: http://bugs.php.net/fix.php?id=30679r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30679r=support Expected behavior: http://bugs.php.net/fix.php?id=30679r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30679r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30679r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=30679r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30679r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=30679r=dst IIS Stability: http://bugs.php.net/fix.php?id=30679r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30679r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30679r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30679r=mysqlcfg
#28063 [NEW]: Support for raw text te be send
From: alex at netflex dot nl Operating system: PHP version: Irrelevant PHP Bug Type: IMAP related Bug description: Support for raw text te be send Description: I like to see support for sending raw text to a server via imap. I'm currently working on an online calendar and i would use the Trusted Application (this allow's you to view boxes fom other users) from Novell, the imap server is a GroupWise system. (url of Novell's extension: http://developer.novell.com/ndk/doc/gwimap/gwimpenu/data/al7te9j.html) Reproduce code: --- $mbox = imap_open ({my.server.com:143}Calendar, appname, apppass); imap_send_raw($mbox, XGWCONF\n); // or somthing like this ... ... -- Edit bug report at http://bugs.php.net/?id=28063edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28063r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28063r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28063r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28063r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28063r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28063r=needscript Try newer version: http://bugs.php.net/fix.php?id=28063r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=28063r=support Expected behavior: http://bugs.php.net/fix.php?id=28063r=notwrong Not enough info:http://bugs.php.net/fix.php?id=28063r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=28063r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28063r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28063r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28063r=dst IIS Stability: http://bugs.php.net/fix.php?id=28063r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=28063r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28063r=float
#26953 [NEW]: unnamed static class not callable
From: alex at netflex dot nl Operating system: all PHP version: 5.0.0b3 (beta3) PHP Bug Type: Feature/Change Request Bug description: unnamed static class not callable Description: It isn't posible to make a call to a static function in a class if you dont no the name of the class while you making the script: class gfx_tagHandler_img { public static function isSupported() { return true;} } $test = gfx_tagHandler_img; echo {$test}::isSupported(); I was expecting that: echo {$test}::isSupported(); was translated to: echo gfx_tagHandler_img::isSupported(); but is wasn't can this be an feature for PHP? tnx. -- Edit bug report at http://bugs.php.net/?id=26953edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26953r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26953r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26953r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26953r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26953r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26953r=needscript Try newer version: http://bugs.php.net/fix.php?id=26953r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=26953r=support Expected behavior: http://bugs.php.net/fix.php?id=26953r=notwrong Not enough info:http://bugs.php.net/fix.php?id=26953r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=26953r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26953r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26953r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26953r=dst IIS Stability: http://bugs.php.net/fix.php?id=26953r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=26953r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26953r=float
#26953 [Opn]: static function in unnamed class not callable
ID: 26953 User updated by: alex at netflex dot nl -Summary: unnamed static class not callable Reported By: alex at netflex dot nl Status: Open Bug Type: Feature/Change Request Operating System: all PHP Version: 5.0.0b3 (beta3) New Comment: changed the summary Previous Comments: [2004-01-18 08:18:40] alex at netflex dot nl Description: It isn't posible to make a call to a static function in a class if you dont no the name of the class while you making the script: class gfx_tagHandler_img { public static function isSupported() { return true;} } $test = gfx_tagHandler_img; echo {$test}::isSupported(); I was expecting that: echo {$test}::isSupported(); was translated to: echo gfx_tagHandler_img::isSupported(); but is wasn't can this be an feature for PHP? tnx. -- Edit this bug report at http://bugs.php.net/?id=26953edit=1