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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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-2021 The PHP Group
All rights reserved.
Last updated: Mon Aug 02 23:01:23 2021 UTC