davidbelow / phpmemcacheadmin

Automatically exported from code.google.com/p/phpmemcacheadmin
0 stars 0 forks source link

warning: preg_replace: Unknown modifier 'w' #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I downloaded and put on the server
2. went to page: 
   /index.php?server=localhost:11211&show=items&slab=2&request_key=sweeps:user/sweepstake:991664/2858&request_api=Server&request_command=get

What is the expected output? What do you see instead?

I get a Warning:

Warning: preg_replace() [function.preg-replace]: Unknown modifier 'w' in 
/mnt/hgfs/vhosts/memcacheadmin/Library/Command/Server.php on line 275

What version of the product are you using? On what operating system?

- phpMemCacheAdmin-1.1.3r161

Please provide any additional information below.

Original issue reported on code.google.com by bkube...@gmail.com on 4 Jan 2011 at 10:29

GoogleCodeExporter commented 8 years ago
Hello

I think it take the /s in user/sweeps for the end delimiter of the regexp, i 
need to add some control in it

Original comment by eli...@free.fr on 7 Jan 2011 at 9:15

GoogleCodeExporter commented 8 years ago
This will be fixed in 1.2.0

You can manually patch current version, by replacing line 275
from
 return preg_replace('/^VALUE ' . $key . '[0-9 ]*\r\n/', '', $string);
to 
 return preg_replace('/^VALUE ' . preg_quote($key, '/') . '[0-9 ]*\r\n/', '', $string);

Thank you for pointing this bug out

Original comment by eli...@free.fr on 7 Jan 2011 at 10:52

GoogleCodeExporter commented 8 years ago
I close this issue as version 1.2.0 is out today and fix this bug

http://code.google.com/p/phpmemcacheadmin/downloads/list

Original comment by eli...@free.fr on 6 Apr 2011 at 8:57