ID:               40193
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Feedback
 Bug Type:         Filesystem function related
 Operating System: Debian Linux/Sparc
 PHP Version:      6CVS-2007-01-22 (CVS)
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

This should be fixed now.


Previous Comments:
------------------------------------------------------------------------

[2007-01-30 10:27:47] [EMAIL PROTECTED]

Actually I am using Debian/SPARC, thus it seems like GCC problem on
SPARC (gcc 4.1, 3.4 works well)

------------------------------------------------------------------------

[2007-01-29 21:24:41] [EMAIL PROTECTED]

Looks like some GCC problem reproducible only on Solaris.


------------------------------------------------------------------------

[2007-01-22 16:25:22] [EMAIL PROTECTED]

PHP6 on Solaris is not my high priority at the moment.
I'm using GCC 3.4.2 and PHP5.2.x, which works just fine here.

------------------------------------------------------------------------

[2007-01-22 14:52:44] [EMAIL PROTECTED]

Downgraded to 3.4, now builds and starts without problems, but the
errors are in bad condition - the function name is printed. Endiannees
problem?
[EMAIL PROTECTED]:~/dev/6$ sapi/cli/php -r
'file_get_contents("nofile.txt");'

Warning: (nofile.txt): failed to open stream: No such file or directory
in Command line code on line 1


The problem lies somewhere here :
function.v is not NULL, but function_name_is_string is false. Otherwise
function.s points to the right string, which is "file_get_contents"

        /* if we still have memory then format the origin */
        if (function.v) {
                if (function_name_is_string) {
                        origin_len = spprintf(&origin, 0, "%v%s%s(%s)", 
class_name, space,
function.s, params);
                } else {
                        origin_len = spprintf(&origin, 0, "%v%s%v(%s)", 
class_name, space,
function, params);
                }
        } else {
                origin_len = spprintf(&origin, 0, "%s", stage);
        }

Tony, please contact me if you need more information.

------------------------------------------------------------------------

[2007-01-22 11:49:36] [EMAIL PROTECTED]

It is known to crash on Solaris/SPARC when built with GCC 4.1, but NOT
with GCC 3.x.
I'd be grateful if you find the reason, but it looks like it's a
problem of newer versions of GCC on SPARC.

------------------------------------------------------------------------

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/40193

-- 
Edit this bug report at http://bugs.php.net/?id=40193&edit=1

Reply via email to