Bug #69876 [Fbk->NoF]: scalar typehint crash if default value is not related type

From: Date: Sun, 05 Jul 2015 04:22:18 +0000
Subject: Bug #69876 [Fbk->NoF]: scalar typehint crash if default value is not related type
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-194128@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69876&edit=1 ID: 69876 Updated by: php-bugs@lists.php.net Reported by: dams@php.net Summary: scalar typehint crash if default value is not related type -Status: Feedback +Status: No Feedback Type: Bug Package: Reproducible crash Operating System: OSX & Debian PHP Version: 7.0.0alpha1 Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2015-06-22 09:12:30] dams@php.net After laruence's feedback, I did a build from php7-alpha1, and got the same result. Then, I pulled php-src, and rebuild from scratch. The bug went away. I tried again on php7-alpha1, and not it is fine too, though builds were in different folders. This was probably a build artefact. Note : I never could access snaps.php.net ------------------------------------------------------------------------ [2015-06-19 22:49:54] kalle@php.net Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. C:\dev\php-src>cat .git/refs/heads/master 89fda08473dd7df85b30cbdd7c9e6e1a1d516b90 C:\dev\php-src>php -v PHP 7.0.0-dev (cli) (built: Jun 20 2015 00:43:44) Copyright (c) 1997-2015 The PHP Group Zend Engine v3.0.0-dev, Copyright (c) 1998-2015 Zend Technologies C:\dev\php-src>php -r "function a(int $a = 1.2) {}" Fatal error: Default value for parameters with a integer type hint can only be integer or NULL in Command line code on line 1 ------------------------------------------------------------------------ [2015-06-19 02:27:15] laruence@php.net Please try using this snapshot: http://snaps.php.net/php-trunk-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [2015-06-18 20:04:48] cmb@php.net I can't reproduce on Ubuntu (same rev: d9d1948) either. I get: | Fatal error: Default value for parameters with a integer type | hint can only be integer or NULL in %s on line %d | Errors parsing %s ------------------------------------------------------------------------ [2015-06-18 16:19:46] cmb@php.net Related to bug #69767 which is supposed to have been fixed. I can't reproduce the issue on Windows with this very rev. ------------------------------------------------------------------------ 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 https://bugs.php.net/bug.php?id=69876 -- Edit this bug report at https://bugs.php.net/bug.php?id=69876&edit=1

« previous php.bugs (#194128) next »