[Bug 1198882] Re: __toString() which stores $this reference triggers segfault

2013-08-28 Thread Alexey Skryabin
** Description changed:

- DISTRIB_DESCRIPTION="Ubuntu 12.04.2 LTS"
- php --version
- PHP 5.3.10-1ubuntu3.6 with Suhosin-Patch 
+ Description:
+ Passing object with __toString() causes segfault in random script iteration. 
When casted to string beforehand, it runs OK.
  
+ Test case:
  Code as
  a = $this;
  return 'waa?';
  }
  }
  
  $a = new A;
  echo trim($a);
  echo trim($a->a);
  
  ?>
  crashes in CLI, and run as php mod in apache
+ 
+ Enviroment:
+ DISTRIB_DESCRIPTION="Ubuntu 12.04.2 LTS"
+ php --version
+ PHP 5.3.10-1ubuntu3.6 with Suhosin-Patch

** Changed in: php5 (Ubuntu)
   Status: Triaged => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1198882

Title:
  __toString() which stores $this reference triggers segfault

To manage notifications about this bug go to:
https://bugs.launchpad.net/php/+bug/1198882/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1198882] Re: __toString() which stores $this reference triggers segfault

2013-08-14 Thread Alexey Skryabin
Bazaar merge directive file with patch, changelog and series

** Attachment added: "bug.bzr"
   
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1198882/+attachment/3772517/+files/bug.bzr

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1198882

Title:
  __toString() which stores $this reference triggers segfault

To manage notifications about this bug go to:
https://bugs.launchpad.net/php/+bug/1198882/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1198882] Re: __toString() which stores $this reference triggers segfault

2013-08-14 Thread Alexey Skryabin
Archive with patch, series and changelog

** Attachment added: "bug.tgz"
   
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1198882/+attachment/3772427/+files/bug.tgz

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1198882

Title:
  __toString() which stores $this reference triggers segfault

To manage notifications about this bug go to:
https://bugs.launchpad.net/php/+bug/1198882/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1198882] Re: __toString() which stores $this reference triggers segfault

2013-08-14 Thread Alexey Skryabin
This is tar.gz archive with new changelog, series and file with
patch(bug1198882.diff)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1198882

Title:
  __toString() which stores $this reference triggers segfault

To manage notifications about this bug go to:
https://bugs.launchpad.net/php/+bug/1198882/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1198882] Re: __toString() which stores $this reference triggers segfault

2013-08-14 Thread Robie Basak
This has been on my todo list, but I regret that it's pretty low down on
my list at the moment. If you'd like to speed things up, instructions
below.

> What should I do to help make a patch upstream in Precise?

Please see the procedure here:

https://wiki.ubuntu.com/StableReleaseUpdates#Procedure

But first you need a patch which includes the packaging changes.
Normally you'll end up patching debian/changelog, debian/patches/series,
and adding a new file to debian/patches/ with the fix. We call this a
quilt patch, and the "quilt" tool can help you create this. The new file
in debian/patches/ would normally contain dep3 headers
(http://dep.debian.net/deps/dep3/). Please see the packaging guide
(http://developer.ubuntu.com/packaging/html/index.html) for more
details.

Once you've got the patch, you can attach it here, or submit the
equivalent bzr merge proposal. Then subscribe the ubuntu-sponsors team
to the bug.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1198882

Title:
  __toString() which stores $this reference triggers segfault

To manage notifications about this bug go to:
https://bugs.launchpad.net/php/+bug/1198882/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1198882] Re: __toString() which stores $this reference triggers segfault

2013-08-14 Thread Alexey Skryabin
libapache2-mod-php5 also does not contain the error in Saucy.
What should I do to help make a patch upstream in Precise? I have to make bzr 
send on some address or patch attached here enough?

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1198882

Title:
  __toString() which stores $this reference triggers segfault

To manage notifications about this bug go to:
https://bugs.launchpad.net/php/+bug/1198882/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1198882] Re: __toString() which stores $this reference triggers segfault

2013-08-02 Thread Alexey Skryabin
No, php-cli Saucy not contain this bug(libapache2-mod-php5 not tested yet)
patch rebuild with quilt, atach in message

** Patch added: "bug1198882.patch"
   
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1198882/+attachment/3758041/+files/bug1198882.patch

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1198882

Title:
  __toString() which stores $this reference triggers segfault

To manage notifications about this bug go to:
https://bugs.launchpad.net/php/+bug/1198882/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1198882] Re: __toString() which stores $this reference triggers segfault

2013-08-02 Thread Robie Basak
Thanks for identifying the fix!

Could you please verify that this bug is fixed in Saucy? If not, we have
to fix it there at the same time, so that users upgrading in the future
don't get a regression.

Next, see the Ubuntu packaging guide for instructions on how to turn
this patch into something suitable for Ubuntu:
http://developer.ubuntu.com/packaging/html/index.html. Specifically the
"Patches to Packages" page should help you here.

Alternatively, you can wait for a developer to get on to this. I
appreciate your contribution to Ubuntu so far - now we have an
identified fix that we can apply.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1198882

Title:
  __toString() which stores $this reference triggers segfault

To manage notifications about this bug go to:
https://bugs.launchpad.net/php/+bug/1198882/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1198882] Re: __toString() which stores $this reference triggers segfault

2013-08-02 Thread Robie Basak
** Bug watch added: bugs.php.net/ #61165
   http://bugs.php.net/bug.php?id=61165

** Also affects: php via
   http://bugs.php.net/bug.php?id=61165
   Importance: Unknown
   Status: Unknown

** Changed in: php5 (Ubuntu)
   Status: Confirmed => Triaged

** Tags added: bitesize patch

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1198882

Title:
  __toString() which stores $this reference triggers segfault

To manage notifications about this bug go to:
https://bugs.launchpad.net/php/+bug/1198882/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1198882] Re: __toString() which stores $this reference triggers segfault

2013-08-02 Thread Alexey
I find fix bug on php git repo - 
http://git.php.net/?p=php-src.git;a=blob;f=Zend/zend_API.c;h=3b87145e6cd850b7c524ddac13ef19f6f43b4c62;hb=1ee93c83ff7278f09be64b496a208a1c453f8b7c
 and create patch file,but im not sure I designed the patch correctly. Test 
script work correct with this patch.
Patch file in atach.

** Patch added: "bug.patch"
   
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1198882/+attachment/3757870/+files/bug.patch

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1198882

Title:
  __toString() which stores $this reference triggers segfault

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1198882/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1198882] Re: __toString() which stores $this reference triggers segfault

2013-08-01 Thread Robie Basak
Please can you identify the specific commit that fixed this issue in
5.3.27? Then we can cherry-pick that fix to 12.04.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1198882

Title:
  __toString() which stores $this reference triggers segfault

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1198882/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1198882] Re: __toString() which stores $this reference triggers segfault

2013-08-01 Thread Алексей
Yes, it problem fixed in 5.3.27 
I uploaded build php 5.3.27 in https://launchpad.net/~rip84/+archive/php5, but 
not sure, what did the right thing. Script work fine in this build. I will test 
today project, which contains a more complex code causing an error.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1198882

Title:
  __toString() which stores $this reference triggers segfault

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1198882/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1198882] Re: __toString() which stores $this reference triggers segfault

2013-08-01 Thread Robie Basak
Thank you for taking the time to report this bug and helping to make
Ubuntu better.

Confirmed with php5-cli 5.3.10-1ubuntu3.7.

Could you please test the upstream 5.3.27 version built from source? If
this fixes the problem, then we'll need to identify and cherry-pick the
fix in Ubuntu and issue a stable release update.

** Changed in: php5 (Ubuntu)
   Status: New => Confirmed

** Changed in: php5 (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1198882

Title:
  __toString() which stores $this reference triggers segfault

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1198882/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1198882] Re: __toString() which stores $this reference triggers segfault

2013-07-09 Thread Алексей
** Description changed:

- Bug described on https://bugs.php.net/bug.php?id=60701 not fixes in current 
version. 
- Code as 
+  ProblemType: Package
+  DistroRelease: Ubuntu 12.04
+  Package: php5
+ Code as
  a = $this;
- return 'waa?';
- }
+ public $a;
+ public function __toString()
+ {
+ $this->a = $this;
+ return 'waa?';
+ }
  }
  
  $a = new A;
  echo trim($a);
  echo trim($a->a);
  
  ?>
  crashes in CLI, and run as php mod in apache

** Description changed:

-  ProblemType: Package
-  DistroRelease: Ubuntu 12.04
-  Package: php5
+ DISTRIB_DESCRIPTION="Ubuntu 12.04.2 LTS"
+ php --version
+ PHP 5.3.10-1ubuntu3.6 with Suhosin-Patch 
+ 
  Code as
  a = $this;
  return 'waa?';
  }
  }
  
  $a = new A;
  echo trim($a);
  echo trim($a->a);
  
  ?>
  crashes in CLI, and run as php mod in apache

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1198882

Title:
  __toString() which stores $this reference triggers segfault

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1198882/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs