php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61582 Crash on ternary operator
Submitted: 2012-03-31 15:28 UTC Modified: 2012-03-31 15:35 UTC
From: ggnore at bk dot ru Assigned:
Status: Duplicate Package: APC (PECL)
PHP Version: 5.4.0 OS: Centos 5.5 64 Bit
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ggnore at bk dot ru
New email:
PHP Version: OS:

 

 [2012-03-31 15:28 UTC] ggnore at bk dot ru
Description:
------------
I use nginx + php-fpm and it returns error 502 when use code like this

$result = isset($var) ? $var : null;

Test script:
---------------
$result = isset($var) ? $var : null;


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-03-31 15:30 UTC] ggnore at bk dot ru
APC config:

apc.enabled                    = 1
apc.enable_cli                 = 0
apc.max_file_size              = 2M
apc.stat                       = 1
apc.shm_segments               = 1
apc.shm_size                   = 64M
apc.slam_defense               = 0
apc.include_once_override      = 1
apc.num_files_hint             = 0
apc.user_entries_hint          = 0
apc.ttl                        = 0
apc.user_ttl                   = 0
apc.lazy_functions             = 0
apc.lazy_classes               = 0
 [2012-03-31 15:30 UTC] ggnore at bk dot ru
-Summary: Crush on ternary operator +Summary: Crash on ternary operator
 [2012-03-31 15:35 UTC] pajoye@php.net
-Status: Open +Status: Duplicate
 [2012-03-31 15:35 UTC] pajoye@php.net
Already fixed in svn, please use svn's trunk with 5.4.
 [2012-03-31 15:39 UTC] ggnore at bk dot ru
Solved this problem with disabling 
apc.include_once_override      = 0

When this param enabled PHP crashed on ternary operator with variables
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 13:01:29 2024 UTC