#47246 [Bgs]: xor,~ bitwise operations are not 32 bit
ID: 47246 User updated by: helpmepro1 at gmail dot com Reported By: helpmepro1 at gmail dot com Status: Bogus Bug Type: Scripting Engine problem Operating System: linux PHP Version: 5.1.6 New Comment: i can't install new version its a shared server i am hosting at. i know this bug for years. i have searched for such bug in PHP bugs and not found it fixed. i have always found it with Bogus status. i think it is serious problem that php does not behave the same on every machine. i expect PHP to work the same on every machine with indifference of the CPU , CPU bits and the operation system. if CPU does not have 64 bit math i think the bitwise staff should be emulated and work slower or not. (the normal math works OK) however this is not the current problem. MY SERVER HAS 64 bit CPU. and because of that i have a problem in my program because i guess : it takes the other register on some CPUSs as the first register when it does bitwise calculations. i have tried to give you very detailed information about the bug. and my can you check please if bitwise 64bit emulation exists in php? my solution was to truncate the number correctly by doing normal math until 32 bit count. // decrypt function TEAdecrypt($str, $key) { $str = ew_UrlDecode($str); if ($str == ) { return ; } $v = str2long($str, false); $k = str2long($key, false); if (count($k) 4) { for ($i = count($k); $i 4; $i++) { $k[$i] = 0; } } $n = count($v) - 1; $z = $v[$n]; $y = $v[0]; $delta = 0x9E3779B9; $q = floor(6 + 52 / ($n + 1)); $sum = int32($q * $delta); while ($sum != 0) { $e = $sum 2 3; for ($p = $n; $p 0; $p--) { $z = $v[$p - 1]; $mx = int32((($z 5 0x07ff) ^ $y 2) + (($y 3 0x1fff) ^ $z 4)) ^ int32(($sum ^ $y) + ($k[$p 3 ^ $e] ^ $z)); $y = $v[$p] = int32($v[$p] - $mx); } $z = $v[$n]; $mx = int32((($z 5 0x07ff) ^ $y 2) + (($y 3 0x1fff) ^ $z 4)) ^ int32(($sum ^ $y) + ($k[$p 3 ^ $e] ^ $z)); $y = $v[0] = int32($v[0] - $mx); $sum = int32($sum - $delta); } return long2str($v, true); } function int32($n) { while ($n = 2147483648) $n -= 4294967296; while ($n = -2147483649) $n += 4294967296; return (int)$n; } Previous Comments: [2009-01-31 23:46:23] j...@php.net 1. Your PHP versions are too old (current version is 5.2.8, 5.3.0 is about to be released..you do the math) 2. Use 64bit machine for 64bit math and it works fine. 3. Ask further support questions on how to program elsewhere. [2009-01-29 21:41:01] helpmepro1 at gmail dot com on windows it works OK maybe there is a different cpu i dont know [2009-01-29 21:37:38] helpmepro1 at gmail dot com on windows it works like this: var_dump(-4738698913) = float(-4738698913) so this number is float A decbin 43814 SIMPLE = 1010101100100110 B decbin-4738698913 NOT WORKING = 1110010110001101001100010101 C decbin 4738698913 SIMPLE = 1101001110010110011101011 D decbin abs-4738698913 WORKING = 1101001110010110011101011 E decbin ~abs -4738698913 NOT WORKING = 1110010110001101001100010100 F decbin ~abs -1738698913 WORKING = 10011101110110000100 php version 4.4.4 [2009-01-29 21:17:04] helpmepro1 at gmail dot com Description: the problem is doing bitwise operations with large numbers like larger then 28 bit. when i do negative bitwise operation ~ to 4738698913 in binary 1101001110010110011101011{29bit} the number becomes binary 1000{32bit} expected: 1110010110001101001100010100 Reproduce code: --- TEXTAREA STYLE=height:98%;width:98% ?php // //I think I found out the solution by using GMP function. //Code: function gxor($a,$b) { $a=gmp_init($a,10); $b=gmp_init($b,10); return gmp_strval (gmp_xor ($a, $b),10); } echo gxor(-5799680607,167160) = .gxor(-5799680607,167160).\n; echo as expected -5799843495 \n; echo -5799680607^167160 = .(-5799680607^167160).\n; echo wrong result \n\n; echo var_dump(-4738698913) = ; var_dump(-4738698913); echo so this number is float\n\n; echo A decbin 43814 SIMPLE = .decbin(43814).\n\n; //a echo B decbin-4738698913 NOT WORKING = .decbin(-4738698913).\n\n; //b echo C decbin 4738698913 SIMPLE = .decbin(4738698913).\n\n; echo D decbin abs-4738698913 WORKING = .decbin(abs(-4738698913)).\n\n; echo E decbin ~abs -4738698913 NOT WORKING = .decbin(~abs(-4738698913)).\n\n; echo F decbin ~abs -1738698913 WORKING = .decbin(~abs(-1738698913)).\n\n; echo G decbin ~
#46531 [Com]: ftp_put returns error on Accepted data connection
ID: 46531 Comment by: info at vuk dot bg dot it Reported By: jmichae3 at yahoo dot com Status: No Feedback Bug Type: FTP related Operating System: XP Pro SP3 PHP Version: 5.2.6 New Comment: Environment PHP Version 5.2.4-2ubuntu5.3 Apache 2.0 Application: zip files http upload, decompression on webserver, ftp directory creation and files ftp transfer to remote ftp server; Situation: a zip file with 2 directories within, each containig one file; Reproduce Code -- if(!ftp_put($this-conn_id,$target,$tmp_file_name,$ftp_mode)){ //set debug information } $ftp_mode is 2 Actual Result - The two files have been transfered correctly but the second operation gave this error:Warning: ftp_put() [function.ftp-put]: Accepted data connection Previous Comments: [2008-11-18 01:00:02] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to Open. [2008-11-11 06:49:50] jmichae3 at yahoo dot com I will not be able to reproduce this bug until something on the network goes nuts again. in my case, it was my cable modem configuration combined with an ISP network upgrade. after persistently trying to get an internet connection again (and many calls to tech support), I did. All is well now with my connection so I can't test the Accepted data connection error, but I did test mkdir and it appears to be working. //ftp mkdir test function mk($conn_id) { echo chdir\n; if (!ftp_chdir($conn_id, /public_html/)) { echo chdir failed\n; return; } echo mkdir test\n; if (!ftp_mkdir($conn_id, /public_html/test)) { echo mkdir failed\n; return; } echo chdir test\n; if (!ftp_chdir($conn_id, /public_html/test)) { echo chdir failed\n; return; } } // set up basic connection $conn_id = ftp_connect($host); // login with username and password $login_result = ftp_login($conn_id, $uid, $pwd); // check connection if ((!$conn_id) || (!$login_result)) { echo FTP connection has failed!\n; echo Attempted to connect to $host for user $uid\n; exit; } else { echo Connected to $host, for user $uid\n; } ftp_pasv($conn_id, true); mk($conn_id); // close the FTP stream ftp_close($conn_id); [2008-11-10 11:24:25] j...@php.net Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ [2008-11-10 06:20:28] jmichae3 at yahoo dot com Description: PHP Warning: ftp_put(): Accepted data connection in C:\www\jimm\ftp6.php on line 122 is this really an error state for ftp_put? I would think it would be a success! PHP is returning an error on this. I think this is a bug. Reproduce code: --- if (ftp_put($conn_id, basename($dest_file), $src_file, FTP_BINARY)) { echo success\n; } else { echo error\n; } Expected result: success Actual result: -- the server I am working with is having problems. lately it is really slow, and I get about 6 successful files uploaded, and the rest (about 450+ files) are PHP Warning: ftp_put(): Accepted data connection in C:\www\jimm\ftp6.php on line 122 error also, subsequent attempts at a ftp_mkdir also fail. -- Edit this bug report at http://bugs.php.net/?id=46531edit=1
#44963 [Com]: Problem with installer package
ID: 44963 Comment by: wongkimwah at ymail dot com Reported By: f dot polster at ceisa-packagibg dot com Status: No Feedback Bug Type: Windows Installer Operating System: windows 2003 SP2 PHP Version: 5.2.6 New Comment: This is the installation bug. Just found the step by step guide for Solving this problem(a workaround solution). You can get the solution in http://d0--0b.blogspot.com/2009/02/cannot-install-php-528-to-xp-iis-5.html Hope this help :) Previous Comments: [2008-12-23 02:19:54] ccza at yahoo dot com i have the same bugs. for windows 2000 IIS [2008-12-11 18:51:44] buingthai at gmail dot com ok. i 've installed with php 5.2.7. I think that bug for php 5.2.8. please check it again [2008-12-11 18:47:54] buingthai at gmail dot com i have the same bugs. it's bad [2008-08-30 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to Open. [2008-08-22 06:53:25] j...@php.net Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows (zip): http://snaps.php.net/win32/php5.2-win32-latest.zip For Windows (installer): http://snaps.php.net/win32/php5.2-win32-installer-latest.msi The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/44963 -- Edit this bug report at http://bugs.php.net/?id=44963edit=1
#47263 [NEW]: xmlrpc_set_type() doesn't respect timezone settings
From: daniel dot oconnor at gmail dot com Operating system: PHP version: 5.2.8 PHP Bug Type: XMLRPC-EPI related Bug description: xmlrpc_set_type() doesn't respect timezone settings Description: xmlrpc_set_type() doesn't appear to respect my timezone settings (alternatively, it should parse everything as GMT/UTC?) Tested on 5.2.6 5.2.8 Reproduce code: --- ?php date_default_timezone_set('UTC'); $time = time(); $date = date(Y-m-dTH:i:s, $time) . \n; $date = 20060116T19:14:03; $time = strtotime($date); print $date . \n; print $time . \n; $xmlrpc_date = (string)$date; xmlrpc_set_type($xmlrpc_date, 'datetime'); print $xmlrpc_date-timestamp . \n;; print date(Y-m-d H:i:s, $time) . \n; print date(Y-m-d H:i:s, $xmlrpc_date-timestamp); /* 5.2.6 / ubuntu says: 20060116T19:14:03 1137438843 1137401043 2006-01-16 19:14:03 2006-01-16 08:44:03 */ Expected result: 20060116T19:14:03 1137438843 1137438843 2006-01-16 19:14:03 2006-01-16 19:14:03 Actual result: -- 20060116T19:14:03 1137438843 1137401043 2006-01-16 19:14:03 2006-01-16 08:44:03 -- Edit bug report at http://bugs.php.net/?id=47263edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47263r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47263r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47263r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47263r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47263r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47263r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47263r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47263r=needscript Try newer version: http://bugs.php.net/fix.php?id=47263r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47263r=support Expected behavior: http://bugs.php.net/fix.php?id=47263r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47263r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47263r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47263r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47263r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=47263r=dst IIS Stability: http://bugs.php.net/fix.php?id=47263r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47263r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47263r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47263r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47263r=mysqlcfg
#47257 [Com]: SQLite3-__construct has no sane way to detect errors
ID: 47257 Comment by: crrodriguez at suse dot de Reported By: cel...@php.net Status: Assigned Bug Type: SQLite related Operating System: n/a PHP Version: 5.3.0beta1 Assigned To: scottmac New Comment: Exceptions only IMHO, it is a new OOP only extension, kinda odd that it throws only notices on errors... Previous Comments: [2009-01-31 19:22:22] cel...@php.net Description: SQLite3-__construct does not indicate errors by anything other than an E_NOTICE. This means we have to set a user error handler just to tell whether or not this code succeeds: ?php $a = new SQLite3('/path/to/database.sqlite'); ? the constructor should throw an exception, or provide an error string parameter by reference like the SQLite object. Reproduce code: --- ?php // run as non-root $a = new SQLite3('/root/database.sqlite'); ? Expected result: exception Actual result: -- E_NOTICE error -- Edit this bug report at http://bugs.php.net/?id=47257edit=1
#47257 [Asn]: SQLite3-__construct has no sane way to detect errors
ID: 47257 Updated by: scott...@php.net Reported By: cel...@php.net Status: Assigned Bug Type: SQLite related Operating System: n/a PHP Version: 5.3.0beta1 Assigned To: scottmac New Comment: I'll add an error mode option and probably default it to an exception. I'm not a huge fan of heavy exception throwing code, you end up wrapping huge blocks of code in try {}. Previous Comments: [2009-02-01 17:22:53] crrodriguez at suse dot de Exceptions only IMHO, it is a new OOP only extension, kinda odd that it throws only notices on errors... [2009-01-31 19:22:22] cel...@php.net Description: SQLite3-__construct does not indicate errors by anything other than an E_NOTICE. This means we have to set a user error handler just to tell whether or not this code succeeds: ?php $a = new SQLite3('/path/to/database.sqlite'); ? the constructor should throw an exception, or provide an error string parameter by reference like the SQLite object. Reproduce code: --- ?php // run as non-root $a = new SQLite3('/root/database.sqlite'); ? Expected result: exception Actual result: -- E_NOTICE error -- Edit this bug report at http://bugs.php.net/?id=47257edit=1
#47134 [Com]: Install issue with PHP 5.2.8 installer
ID: 47134 Comment by: david dot barrass at ed dot ac dot uk Reported By: craig dot emenaker at gmail dot com Status: Open Bug Type: Windows Installer Operating System: Windows XP Pro PHP Version: 5.2.8 Assigned To: jmertic New Comment: Got it working by changing permissions on the apache directory so I could add things to the directory Previous Comments: [2009-01-18 03:02:54] craig dot emenaker at gmail dot com I went to the http://snaps.php.net/ page. Based on the descriptions as to which version to download (If you are using PHP with IIS you should use the VC9 versions of PHP), I selected Windows x86 VC9 (thread safe)). I'm not sure about the thread safe vs. non thread safe, though. I selected the thread safe Installer, but got the following error when trying to install: The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2356. [2009-01-17 20:30:20] jmer...@php.net This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. [2009-01-17 19:52:35] boicenet at gmail dot com I just tried installing 5.2.8 and am receiving the same Installer message regarding a missing script. Is there a resolution to this issue? Seems it has been around at least for a few versions of PHP 5.2.x. Thanks. [2009-01-17 11:00:18] bj...@php.net reclassified [2009-01-17 02:59:25] craig dot emenaker at gmail dot com Description: Downloaded PHP 5.2.8 installer (Windows Binaries). When trying to install, I get a message, There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. I tried both IIS ISAPI module and IIS CGI set-up types, and got the same error regardless. Reproduce code: --- n/a - Download/install issue. Expected result: Clean install Actual result: -- Error msg: There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. -- Edit this bug report at http://bugs.php.net/?id=47134edit=1
#47264 [NEW]: currtent($myArray) not returning correct item
From: george at shoutbomb dot com Operating system: windows 2003 PHP version: 5.2.8 PHP Bug Type: Arrays related Bug description: currtent($myArray) not returning correct item Description: When requesting the 'current' pointer in an array it always returns the 'first' item. Reproduce code: --- $search_array = array('first' = 1, 'second' = 4,'third' = 51, 'fourth' = 54,'fifth' = 15); if (array_key_exists('fourth', $search_array)) { echo current($search_array); } Expected result: Expecting the 'fourth' item. Actual result: -- Always returns the 'first' item. -- Edit bug report at http://bugs.php.net/?id=47264edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47264r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47264r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47264r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47264r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47264r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47264r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47264r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47264r=needscript Try newer version: http://bugs.php.net/fix.php?id=47264r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47264r=support Expected behavior: http://bugs.php.net/fix.php?id=47264r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47264r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47264r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47264r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47264r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=47264r=dst IIS Stability: http://bugs.php.net/fix.php?id=47264r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47264r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47264r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47264r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47264r=mysqlcfg
#47265 [NEW]: generating phar.phar failes because of safe_mode
From: lars at larswolter dot de Operating system: Linux PHP version: 5.3.0beta1 PHP Bug Type: Compile Failure Bug description: generating phar.phar failes because of safe_mode Description: Compilation failes while generating phar.phar. This happens if php is configured with safe_mode to on. Workaround? Add -d 'safe_mode=0' to PHP_PHARCMD_SETTINGS Reproduce code: --- './configure' '--without-mm' \ '--with-mysql' '--prefix=/usr/lib/php5' \ '--with-mcrypt' \ '--enable-safe-mode' \ '--with-openssl' '--with-zlib' '--enable-calendar' \ '--enable-exif' '--enable-ftp' \ '--with-gd' '--with-imap' '--with-kerberos' \ '--with-imap-ssl' \ '--enable-gd-native-ttf' \ '--enable-force-cgi-redirect' \ '--with-freetype-dir=/usr/include/freetype2' \ '--with-jpeg-dir=/usr/lib' \ '--with-gettext' '--with-iconv' '--enable-mbstring=all' \ '--enable-mbregex' '--with-xsl' '--with-pdo-mysql' Expected result: Build complete. Actual result: -- Warning: shell_exec(): Cannot execute using backquotes in Safe Mode in /home/lars/php-5.3.0beta1/ext/phar/phar.php on line 706 Pear package PHP_Archive or Archive.php class file not found. Warning: Phar::__construct(): SAFE MODE Restriction in effect. The script whose uid is 0 is not allowed to access /home/lars/php-5.3.0beta1/ext/phar owned by uid 1001 in /home/lars/php-5.3.0beta1/ext/phar/phar.php on line 1055 Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Phar creation or opening failed' in /home/lars/php-5.3.0beta1/ext/phar/phar.php:1055 Stack trace: #0 /home/lars/php-5.3.0beta1/ext/phar/phar.php(1055): Phar-__construct('/home/lars/php-5.3.0...', 0, 'pharcommand') #1 [internal function]: PharCommand-cli_cmd_run_pack(Array) #2 /home/lars/php-5.3.0beta1/ext/phar/phar.php(225): call_user_func(Array, Array) #3 /home/lars/php-5.3.0beta1/ext/phar/phar.php(2078): CLICommand-__construct(19, Array) #4 {main} thrown in /home/lars/php-5.3.0beta1/ext/phar/phar.php on line 1055 make: *** [ext/phar/phar.phar] Fehler 255 -- Edit bug report at http://bugs.php.net/?id=47265edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47265r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47265r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47265r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47265r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47265r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47265r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47265r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47265r=needscript Try newer version: http://bugs.php.net/fix.php?id=47265r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47265r=support Expected behavior: http://bugs.php.net/fix.php?id=47265r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47265r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47265r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47265r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47265r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=47265r=dst IIS Stability: http://bugs.php.net/fix.php?id=47265r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47265r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47265r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47265r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47265r=mysqlcfg
#47264 [Opn-Bgs]: currtent($myArray) not returning correct item
ID: 47264 Updated by: col...@php.net Reported By: george at shoutbomb dot com -Status: Open +Status: Bogus Bug Type: Arrays related Operating System: windows 2003 PHP Version: 5.2.8 New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. That's because you don't move the array pointer. See next(). Previous Comments: [2009-02-01 23:04:57] george at shoutbomb dot com Description: When requesting the 'current' pointer in an array it always returns the 'first' item. Reproduce code: --- $search_array = array('first' = 1, 'second' = 4,'third' = 51, 'fourth' = 54,'fifth' = 15); if (array_key_exists('fourth', $search_array)) { echo current($search_array); } Expected result: Expecting the 'fourth' item. Actual result: -- Always returns the 'first' item. -- Edit this bug report at http://bugs.php.net/?id=47264edit=1
#47267 [NEW]: Every class method can be called as static
From: piero dot recchia at gmail dot com Operating system: Ubuntu 8.10 PHP version: 5.2.8 PHP Bug Type: Scripting Engine problem Bug description: Every class method can be called as static Description: Every class method can be called as static: A wrote a class without static method, but i can call any method as static method. Reproduce code: --- ?php class Test { public function nonStatic() { echo 'Hola Non-Static'; } } Test::nonStatic(); ? Expected result: a error message or exception Actual result: -- Hola Non-Static -- Edit bug report at http://bugs.php.net/?id=47267edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47267r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47267r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47267r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47267r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47267r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47267r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47267r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47267r=needscript Try newer version: http://bugs.php.net/fix.php?id=47267r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47267r=support Expected behavior: http://bugs.php.net/fix.php?id=47267r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47267r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47267r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47267r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47267r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=47267r=dst IIS Stability: http://bugs.php.net/fix.php?id=47267r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47267r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47267r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47267r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47267r=mysqlcfg